|Skip Navigation Links|
|Exit Print View|
|Oracle Solaris 11.1 Administration: Oracle Solaris Zones, Oracle Solaris 10 Zones, and Resource Management Oracle Solaris 11.1 Information Library|
You can perform backups in individual non-global zones, or back up the entire system from the global zone.
Do not back up the loopback file systems (lofs) from within non-global zones.
If you back up and restore read/write loopback file systems from within a non-global zone, note that these file systems are also writable from the global zone, and from any other zones in which they are read/write mounted. Back up and restore these file systems from the global zone only, to avoid multiple copies.
You might choose to perform your backups from the global zone in the following cases:
You want to back up the configurations of your non-global zones as well as the application data.
Your primary concern is the ability to recover from a disaster. If you need to restore everything or almost everything on your system, including the root file systems of your zones and their configuration data as well as the data in your global zone, backups should take place in the global zone.
You have commercial network backup software.
Note - Your network backup software should be configured to skip all inherited lofs file systems if possible. The backup should be performed when the zone and its applications have quiesced the data to be backed up.
You might decide to perform backups within the non-global zones in the following cases.
The non-global zone administrator needs the ability to recover from less serious failures or to restore application or user data specific to a zone.
You use the backup software of a particular application or service running in a zone. It might be difficult to execute the backup software from the global zone because application environments, such as directory path and installed software, would be different between the global zone and the non-global zone.
If the application can perform a snapshot on its own backup schedule in each non-global zone and store those backups in a writable directory exported from the global zone, the global zone administrator can pick up those individual backups as part of the backup strategy from the global zone.
The ZFS send command creates a stream representation of a ZFS snapshot that is written to standard output. By default, a full stream is generated. You can redirect the output to a file or to a different system. The ZFS receive command creates a snapshot in which contents are specified in the stream that is provided on standard input. If a full stream is received, a new file system is created as well. You can send ZFS snapshot data and receive ZFS snapshot data and file systems with these commands.
In addition to the ZFS send and receive commands, you can also use archive utilities, such as the tar and cpio commands, to save ZFS files. These utilities save and restore ZFS file attributes and access control lists (ACLs). Check the appropriate options for both the tar and cpio commands in the man pages.
For information and examples, see Chapter 6, Working With Oracle Solaris ZFS Snapshots and Clones, in Oracle Solaris 11.1 Administration: ZFS File Systems.