System Administration Guide: Devices and File Systems

ProcedureHow to Create a Full Backup of a UFS Snapshot (ufsdump)

  1. Become superuser or assume an equivalent role.

  2. Identify the UFS snapshot to be backed up.

    # /usr/lib/fs/ufs/fssnap -i /file-system

    For example:

    # /usr/lib/fs/ufs/fssnap -i /usr
    Snapshot number               : 1
    Block Device                  : /dev/fssnap/1
    Raw Device                    : /dev/rfssnap/1
    Mount point                   : /usr
    Device state                  : idle
    Backing store path            : /var/tmp/snapshot2
    Backing store size            : 544 KB
    Maximum backing store size    : Unlimited
    Snapshot create time          : Wed Jul 16 14:38:29 2008
    Copy-on-write granularity     : 32 KB
  3. Back up the UFS snapshot.

    # ufsdump 0ucf /dev/rmt/0 /snapshot-name

    For example:

    # ufsdump 0ucf /dev/rmt/0 /dev/rfssnap/1 
  4. Verify that the snapshot has been backed up.

    For example:

    # ufsrestore tf /dev/rmt/0