System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones

ProcedureHow to Use find and cpio to Perform Backups

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration.

  2. Change directories to the root directory.

    global# cd /
  3. Back up my-zone files that are not loopback mounted to /backup/my-zone.cpio.

    global# find export/my-zone -fstype lofs -prune -o -local
     | cpio -oc -O /backup/my-zone.cpio type as one line
  4. Verify the results.

    global# ls -l backup/my-zone.cpio

    You will see a display similar to the following:

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