Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: May 2015

How to Use ZFSsend to Perform Backups

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Obtain the zonepath for the zone:
    global# zonecfg -z my-zone info zonepath
    zonepath: /zones/my-zone
  3. Obtain the zonepath dataset by using the zfs list command:
    global# zfs list -H -o name /zones/my-zone
  4. Create an archive of the zone using a ZFS snapshot:
    global# zfs  snapshot -r rpool/zones/my-zone@snap
    global# zfs snapshot -r rpool/zones/my-zone@snap
    global# zfs zfs send -rc rpool/zones/my-zone@snap > /path/to/save/archive
    global# zfs destroy -r rpool/zones/my-zone@snap

    You will see a display similar to the following:

    -rwxr-xr-x   1 root     root     99680256 Aug 10 16:13 backup/my-zone.cpio