Oracle Solaris operating systemsWindows operating systemsLinux operating systemsAIX operating systems

Backup Image

The backup image command creates an image backup of one or more volumes on your system.

You can use the backup image command to back up NTFS or ReFS, or unformatted RAW volumes. If a volume is NTFS-formatted, only those blocks that are used by the file system are backed up. On ReFS volumes, all blocks are backed up.

AIX operating systemsIf you set the imagegapsize option to 0, all blocks, including unused blocks at the end of the volume, are backed up.

AIX operating systemsIf you specify an AIX® JFS2 file system for image backup, only those blocks that are used by the file system are backed up. If you set the imagegapsize option to zero, all blocks, including blocks at the end of the volume, are backed up.

Oracle Solaris operating systemsLinux operating systemsAIX operating systemsNote:
  1. AIX operating systemsAIX only: By default, snapshot-based image backup is enabled for JFS2 volumes. To turn off snapshot-based image backups, set -snapshotproviderimage=NONE on this command.
  2. Linux operating systemsFor the Linux clients, image backup is only supported on partitions with id 0x83 or logical volumes that are created with the Linux Logical Volume Manager. Backing up other partitions, such as extended partitions that contain mounted file systems or database data, can produce inconsistent backup data if the data changes during the image backup operation.
  3. Linux operating systemsFor the Linux client, image backup of DASD devices with raw-track access mode on Linux on z Systems® is not supported.
  4. Linux operating systemsAIX operating systemsBackup image is not supported on any GPFS file system.
  5. The IBM Spectrum Protect API must be installed to use the backup image command.
  6. AIX operating systemsWhen you change the attribute of a JFS2 file system to an HSM-managed file system, an image backup is not done for that file system.
  7. The image backup operation is not supported on any partition that resides on a multipath device.
Important: The last incremental backup time refers to the server time and the file modification time refers to the client time. If the client and server time are not synchronized, or the client and server are in different time zones, this affects incremental-by-date backup and image backup where mode=incremental.

The client backs up the files that have modification dates and times (on the client) that are later than the date and time of the last incremental backup of the file system on which the file is stored (on the server).

If the server time is ahead of the client time, incremental-by-date backups, or image backup with mode=incremental, skip the files, which had been created or modified after the last incremental or image backup with a modification date earlier than the last incremental backup time stamp.

If the client time is ahead of the server time, all files that had been created or modified before the last incremental or image backup and have a modification time stamp later than the last incremental backup time stamp, are backed up again. Typically, these files would not get backed up because they had already been backed up.

The backup date can be checked by the query filespace command.

Windows operating systemsNote:
  1. The account that is running the backup-archive client must have administrator authority to successfully perform any type of image backup.
  2. The API must be installed to use the backup image command.

Oracle Solaris operating systemsLinux operating systemsAIX operating systemsThe backup-archive client must support the raw device type on the specific platform to perform an image backup of a raw device. You can perform an image backup only on local devices. Clustered devices or file systems as well as devices or file systems that are shared between two or more systems are not supported. If you want to perform an image backup for a file system that is mounted on a raw device, the raw device must be supported.

Use the include.image option to include a file system or logical volume for image backup, or to specify volume-specific options for image backup.

The backup image command uses the compression option.

Supported Clients

Oracle Solaris operating systemsLinux operating systemsAIX operating systemsThis option is valid for AIX, Linux, and Oracle Solaris clients.

Windows operating systemsThis command is valid for all Windows platforms.

Syntax

Read syntax diagramSkip visual syntax diagram Backup Image  options filespec

Parameters

filespec
Specifies the name of one or more logical volumes. If you want to back up more than one file system, separate their names with spaces. Do not use pattern matching characters. If you do not specify a volume name, the logical volumes that are specified with the domain.image option are processed. If you do not use the domain.image option to specify file systems to process, an error message is displayed and no image backup occurs.

Oracle Solaris operating systemsLinux operating systemsAIX operating systemsSpecify the file space over which the logical volume is mounted or the logical volume name. If there is a file system that is configured in the system for a given volume, you cannot back up the volume with the device name.

Oracle Solaris operating systemsLinux operating systemsAIX operating systemsFor example, if the /dev/lv01 file space is mounted on the /home volume, you can issue backup image /home, but backup image /dev/lv01 fails with an error:
ANS1063E Invalid path specified

Oracle Solaris operating systemsLinux operating systemsAIX operating systemsThere is a limit of 20 operands. This limit prevents excessive sessions that are caused when wildcards are expanded by the UNIX shell command processor. You can prevent shell expansion from causing you to go over the 20-operand limit by placing quotation marks around file specifications that contain wildcards ("home/docs/*").

Oracle Solaris operating systemsLinux operating systemsAIX operating systemsYou can use the removeoperandlimit option to specify that the 20-operand limit is removed. If you specify the removeoperandlimit option, the 20-operand limit is not enforced and is restricted only by available resources or other operating system limits. For example, remove the 20 operand limit to backup 21 file specifications:
backup image -removeoperandlimit filespec1 filespec2 ... filespec21
Oracle Solaris operating systemsNote: For Sun systems, specify either a file system name or a raw device name (block device type).

Windows operating systemsImage backup is only supported on a volume that has a mount or a drive letter assigned to it. A volume without a drive letter or mount point cannot be backed up.

Table 1. Backup Image command: Related options
Option Where to use
Windows operating systemsasnodename Windows operating systemsClient options file (dsm.opt) or command line.
Oracle Solaris operating systemsLinux operating systemsAIX operating systemsasnodename Oracle Solaris operating systemsLinux operating systemsAIX operating systemsClient system options file (dsm.sys) or command line.
Oracle Solaris operating systemsLinux operating systemsAIX operating systemscompressalways Oracle Solaris operating systemsLinux operating systemsAIX operating systemsClient system options file (dsm.sys) or command line.
Windows operating systemscompressalways Windows operating systemsClient options file (dsm.opt) or command line.
compression Client options file or command line.
Oracle Solaris operating systemsLinux operating systemsAIX operating systemsdynamicimage Oracle Solaris operating systemsLinux operating systemsAIX operating systemsUse with the backup image command or the include.image option in the options file.
Windows operating systemsLinux operating systemsAIX operating systemsimagegapsize Windows operating systemsLinux operating systemsAIX operating systemsUse with the backup image command, the include.image option, or in the options file.
mode Command line only.
postsnapshotcmd Use with the backup image command, the include.image option, or in the options file.
presnapshotcmd Use with the backup image command, the include.image option, or in the options file.
removeoperandlimit Command line only.
Linux operating systemsAIX operating systemssnapshotcachesize Linux operating systemsAIX operating systemsUse with the backup image command, the include.image option, or in the options file.
Windows operating systemsLinux operating systemsAIX operating systemssnapshotproviderimage Windows operating systemsLinux operating systemsAIX operating systemsClient options file or with include.image option.

Examples

Oracle Solaris operating systemsLinux operating systemsAIX operating systemsTask
Oracle Solaris operating systemsLinux operating systemsAIX operating systemsBack up the /home/test file space over which the logical volume is mounted and perform an image incremental backup that backs up only new and changed files after the last full image backup.

dsmc backup image /home/test -mode=incremental

Windows operating systemsTask
Windows operating systemsBack up a volume that has no drive letter but is mounted as a mount point.

dsmc backup image m:\mnt\myntfs

Windows operating systemsTask
Windows operating systemsBack up the h drive by using an image incremental backup. An image incremental backup backs up files that are new or changed since the last full image backup.

dsmc backup image h: -mode=incremental

Linux operating systemsAIX operating systemsTask
Linux operating systemsAIX operating systemsPerform a static image backup of the logical volume that is mounted at the /home directory.

dsmc backup image /home -snapshotproviderimage=none

Windows operating systemsTask
Windows operating systemsPerform an offline image backup of the f drive.

dsmc backup image f: -snapshotproviderimage=none

Oracle Solaris operating systemsLinux operating systemsAIX operating systemsTask
Oracle Solaris operating systemsLinux operating systemsAIX operating systemsPerform a dynamic image backup of the logical volume that is mounted at the /home directory.

Command: dsmc backup image /home -dynamicimage=yes

Linux operating systemsAIX operating systemsTask
Linux operating systemsAIX operating systemsPerform a snapshot image backup of the /home directory.

AIX operating systemsAIX client: dsmc backup image /home
    -snapshotproviderimage=JFS2

Linux operating systemsLINUX client: dsmc backup image /home
    -snapshotproviderimage=LINUX_LVM

Windows operating systemsTask
Windows operating systemsPerform an online image backup of the f drive.

dsmc backup image f: -snapshotproviderimage=VSS

Oracle Solaris operating systemsLinux operating systemsAIX operating systemsTask
Oracle Solaris operating systemsLinux operating systemsAIX operating systemsBack up the /dev/lv01 raw logical volume.

dsmc backup image /dev/lv01

Windows operating systemsTask
Windows operating systemsBack up the f drive, which is mapped to a volume that has not been formatted with a file system.

dsmc backup image f: