Veritas Storage Foundation 5.1 SP1 Advanced Features Administrator"s Guide (5900-1503, April 2011)

Backup examples
In the following examples, the vxdump utility is used to ascertain whether
/dev/vx/dsk/fsvol/vol1 is a snapshot mounted as /backup/home and does the
appropriate work to get the snapshot data through the mount point.
These are 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 create a backup using a snapshop file system
1
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
2
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 -
3
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:
# 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
265Administering snapshot file systems
Backup examples