VERITAS File SystemÖ 3.5 (HP OnlineJFS/JFS3.5) AdministratorÆs Guide (December 2002)
Appendix A
VERITAS File System Quick Reference
Backing Up and Restoring a File System
108
How to Back Up a File System
After creating a snapshot file system as described in the previous section, you can use vxdump to back it up.
To back up a VxFS snapshot file system, use the syntax:
vxdump [-c] [-f backupdev] snap_mount_point
Example
To back up the VxFS snapshot file system mounted at /snapmount to the tape drive with device name
/dev/rmt, enter:
# vxdump -cf /dev/rmt /snapmount
How to Restore a File System
After backing up the file system, you can restore it using the vxrestore command. First, create and mount
an empty file system. To restore a VxFS snapshot file system, use the syntax:
vxrestore [-v] [-x] [
filename
]
Example
To restore a VxFS snapshot file system /restore, enter:
# cd /restore
# vxrestore -vx /restore
-c Specifies using a cartridge tape device.
backupdev The device on which to back up the file system.
snap_mount_point The snapshot file system’s mount point.
-v Specifies verbose mode.
-x Extracts the named files from the tape.
filename The file or directory to restore. If filename is omitted, the root
directory (and thus the entire tape) is extracted.