Backing up files using the backup command
Use the backup command to create copies of your files on backup media.
For example, to back up selected files in your $HOME directory by
name, type the following:
find $HOME -print | backup -i -v
The -i flag prompts the system to read from standard input the names of files to be backed up. The find command generates a list of files in the user's directory. This list is piped to the backup command as standard input. The -v flag displays a progress report as each file is copied. The files are backed up on the default backup device for the local system.
See the following examples:
- To back up the root file system, type the following:
The 0 level and thebackup -0 -u /
/
tell the system to back up the / (root) file system. The file system is backed up to the /dev/rfd0 file. The -u flag tells the system to update the current backup level record in the /etc/dumpdates file. - To back up all files in the / (root) file system
that were modified since the last 0 level backup, type the following:
backup -1 -u /