System Administration Guide: Basic Administration

How 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               : 0
    Block Device                  : /dev/fssnap/0
    Raw Device                    : /dev/rfssnap/0
    Mount point                   : /usr
    Device state                  : idle
    Backing store path            : /var/tmp/back.store
    Backing store size            : 576 KB
    Maximum backing store size    : Unlimited
    Snapshot create time          : Wed Dec 12 09:39:37 2001
    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 is backed up.


    # ufsrestore tf /dev/rmt/0