For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
# archiveadm create -r archive-name
# archiveadm info -v archive-name ... Recovery Archive: Yes ...
The following example shows how to create a recovery archive comprising only the global zone.
# archiveadm create -r -z global /var/tmp/globalrecovery.uar Initializing Unified Archive creation resources... Unified Archive initialized: /var/tmp/globalrecovery.uar Logging to: /system/volatile/archive_log.11234 Executing dataset discovery... Dataset discovery complete Creating boot media or 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 -v globalrecovery.uar Archive Information Creation Time: 2015-03-03T18:13:21Z Source Host: example Architecture: i386 Operating System: Oracle Solaris 11.3 X86 Recovery Archive: Yes ... Deployable Systems: 'global' ...Example 6 Creating A Recovery Archive of a Zone
The following example shows how to create a recovery archive comprising a zone named example-net. Note that only one zone is allowed for creation of a recovery archive.
# archiveadm create -r -z example-net /var/tmp/example-net-recovery.uar Unified Archive initialized: /var/tmp/example-net-recovery.uar . . Archive creation complete # archiveadm info -v example-net-recovery.uar Archive Information Creation Time: 2015-03-03T19:10:53Z Source Host: example Architecture: i386 Operating System: Oracle Solaris 11.3 X86 Recovery Archive: Yes ... Deployable Systems: 'example-net' ...
The output from this command is the same as the text shown in Example 5, Creating a Recovery Archive of the Global Zone 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 7 Creating a Recovery Archive That Excludes a ZFS DatasetAs with clone archives, you can exclude datasets from an recovery archive. The following example shows how to create a recovery archive excluding the ZFS dataset rpool/scratch. The exclusion of a dataset is recursive, so all descendant datasets are also excluded.
# archiveadm create -r -D rpool/scratch /var/tmp/noscratch-recovery.uar Unified Archive initialized: /var/tmp/noscratch-recovery.uar . . Archive creation complete # archiveadm info -v noscratch-recovery.uar Archive Information Creation Time: 2015-03-03T19:46:10Z Source Host: example Architecture: i386 Operating System: Oracle Solaris 11.3 X86 Recovery Archive: Yes ... Deployable Systems: 'global' ...
The output from this command is the same as the text shown in Example 5, Creating a Recovery Archive of the Global Zone 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.