For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
# archiveadm create archive-name
# archiveadm info archive-name
The following example shows how to create a clone archive with all zones into the clone archive named production1.uar.
# archiveadm create /var/tmp/production1.uar Initializing Unified Archive creation resources... Unified Archive initialized: /var/tmp/production1.uar Logging to: /system/volatile/archive_log.22901 Executing dataset discovery... Dataset discovery complete Creating boot media for global zone(s)... Media creation complete Preparing archive system image... Beginning archive stream creation... Archive stream creation complete Beginning final archive assembly... Archive creation complete # archiveadm info /var/tmp/production1.uar Archive Information Creation Time: 2014-03-02T20:37:16Z Source Host: example Architecture: i386 Operating System: Oracle Solaris 11.2 X86 Deployable Systems: global,example-net,example-devExample 2-2 Creating a Clone Archive That Includes Selected Zones
The following example shows how to create a clone archive named zonearchive.uar that includes the example-net and example-dev zones.
# archiveadm create -z example-net,example-dev /var/tmp/zonearchive.uar Initializing Unified Archive creation resources... . . Archive creation complete # archiveadm info /var/tmp/zonearchive.uar Archive Information Creation Time: 2014-03-02T17:04:11Z Source Host: example Architecture: i386 Operating System: Oracle Solaris 11.2 X86 Deployable Systems: global,example-net,example-dev
The output from this command is the same as the text shown in Example 2–1 except for the name of the created archive and the log file name. Use the archiveadm info command to verify that the archive has the correct information.
Example 2-3 Creating a Clone Archive That Excludes ZFS DatasetsThe following example demonstrates how to exclude a ZFS dataset when creating a clone archive.
# archiveadm create -D tank/scratch /var/tmp/noscratch.uar Initializing Unified Archive creation resources... . . Archive creation complete # archiveadm info /var/tmp/noscratch.uar Archive Information Creation Time: 2014-03-02T17:04:11Z Source Host: example Architecture: i386 Operating System: Oracle Solaris 11.2 X86 Deployable Systems: global,example-net,example-dev
The output from this command is the same as the text shown in Example 2–1 except for the name of the created archive and the log file name. Use the archiveadm info command to verify that the archive has the correct information.