Making a Backup
Here are some typical examples of making a backup of a 300,000 block file system named /home using a snapshot file system on /dev/vx/dsk/fsvol/vol1 with a snapshot mount point of /backup/home:
- To back up files changed within the last week using cpio:
# mount -F vxfs -o snapof=/home,snapsize=100000 \ /dev/vx/dsk/fsvol/vol1 /backup/home
# cd /backup
# find home -ctime -7 -depth -print | cpio -oc > /dev/rmt/0m
# umount /backup/home
- To do a full backup of /home, which exists on disk /dev/vx/dsk/fsvol/vol1, and use dd to control blocking of output onto tape device using vxdump:
# vxdump f - /dev/vx/dsk/fsvol/vol1 | dd bs=128k > /dev/rmt/0m
- To do a level 3 backup of /dev/vx/dsk/fsvol/vol1 and collect those files that have changed in the current directory:
# vxdump 3f - /dev/vx/dsk/fsvol/vol1 | vxrestore -xf -
- To do a full backup of a snapshot file system:
# mount -F vxfs -o snapof=/home,snapsize=100000 \ /dev/vx/dsk/fsvol/vol1 /backup/home
# vxdump f - /dev/vx/dsk/fsvol/vol1 | dd bs=128k > /dev/rmt/0m
The vxdump utility ascertains whether /dev/vx/dsk/fsvol/vol1 is a snapshot mounted as /backup/home and do the appropriate work to get the snapshot data through the mount point.
|