![]() |
![]() |
You can use the selective or incremental command to perform a backup. When the incremental and selective commands complete, Tivoli Storage Manager displays processing statistics similar to those shown in the GUI Backup Report window. These statistics also display in the schedule log for scheduled commands. See Incremental and Selective for more information.
Selective: The selective command backs up specific files. Use wildcards to back up more than one file at a time. If you back up a directory, you can use the subdir=yes option to include all the subdirectories under that directory in the backup. For example, to back up all files in the /home/monnett/proj directory and its subdirectories, enter:
dsmc selective /home/monnett/proj/ -subdir=yes
If you specify subdir=yes when backing up a specific path and file, Tivoli Storage Manager recursively backs up all subdirectories under that path, and any instances of the specified file that exist under any of those subdirectories.
If a subdirectory is a mounted file system, Tivoli Storage Manager does not back up the files in that subdirectory when you use the subdir=yes option.
You can use more than one file specification on the selective command. For example, to back up the /home/monnett/h1.doc and /home/monnett/test.doc files, enter:
dsmc selective /home/monnett/h1.doc /home/monnett/test.doc
Incremental: You can run an incremental backup from the command line using the incremental command. For example, to back up the /home file system, enter:
dsmc incremental /home
If you do not select the file systems to back up, Tivoli Storage Manager uses your default domain. Add file systems to the default domain with the domain option. For example, if your default domain contains file systems /home and /usr, back up those file systems plus the /mfg file system using:
dsmc incremental -domain=/mfgYou can also perform an incremental backup on selected parts of any file system. For example, to do an incremental backup on your home directory and all its subdirectories and files, enter this command:
dsmc incremental $HOME/ -subdir=yes
To start an incremental-by-date, add the incrbydate option:
dsmc incremental -incrbydate