saveit - 20001105

Options

-d root_backup_directory 
   Not allowed with option -i

-c comments to be written into the log file

-o overwrite
   if the file exists in the backup area overwrite it.
   Not allowed with option -i

-i backup in place
   creates a file/directory copy in the directory
   from where you are running saveit  
   The name of the save file/directory is created appending
   .YYYYMMDD.HHMM to the original name.
   Not allowed with option -d

-a plain.
   The file/directory to be save is copied in the Backup
   Directory without creating the standard YYYYMMDD directory
   and without creating the target fullpath.
 

Examples

want to save /etc/hosts

1- cd /
   saveit /etc/hosts

   Results in:
               /Backup.d/20000812/etc/hosts

2- cd / 
   saveit -i /etc/hosts

   Results:
           /log-200000812
           /hosts.20000812.1030


3- cd /etc
   saveit -d ./saved -p /etc/hosts

   Results in:
              /etc/saved/hosts

   same command again

   Results in:
   # ls /etc/saved
   # hosts hosts.200012081030



Limitations 

1- Backup directory

   We only manage ./BACKUP_DIR or ../BACKUP_DIR, not strange things
   like:
         ../lib/../BACKUP

2- Files/Directories to save

   The only relative pathname managed are:

   ../SomeDir
   ./SomeDir
   ../SomeFile
   ./SomeFile
   ../SomeDir/SomeFile 
   ./SomeDir/SomeFile 

