Friday, April 13, 2012

Backup and Recovery

1. To backup a filesystem :
# fbackup -f /dev/rmt/0m -i /home

2. To list the contents of the tape media and store it in a file :
# frecover -I /tmp/indexfile -f /dev/rmt/0m

3. To do level 0 (full) backup of a filesystem and also update the file /var/adm/fbackupfiles/dates :
# fbackup -f /dev/rmt/0m -0 -u /home

4. To do a level 1 backup using a graph file to specify which files will be included/excluded :
# fbackup -f /dev/rmt/2m -1 -u -g /var/adm/fbackupfiles/graphs/g0

Graph file content may look like
i /data
e /data/tmp

5. To backup to the tape drive on the remote server :
# fbackup -f host1:/dev/rmt/0m -v -i /home

6. To backup data to two tape drives (one by one) :
# fbackup -f /dev/rmt/0m -f /dev/rmt/1m -i /data

7. To restore all the files from the tape media
# frecover -v -r -f /dev/rmt/0m

8. To show the tape drive status :
# mt -f /dev/mt/0mnb status

9. To eject a tape :
# mt -f /dev/mt/0mnb offline

10. To rewind the tape media :
# mt -f /dev/rmt/0mnb rewind

No comments:

Post a Comment