Disks and volumes

Listing disks

  • Listing all disks of the local machine.

    acrocmd list disks
  • Listing disks of a remote machine.

    acrocmd list disks --host=192.168.1.2 --credentials=user1,pass1
  • Listing disks of a virtual machine.

    acrocmd list disks --host=srv1 --credentials="srv1\AMS user",pass1 --service=ams --vmid=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

Backing up disks and volumes

  • Backing up the first volume of the second disk and the third volume of the first disk. The backup will be saved to a local folder and will be split into 4.5-GB parts to be later written on DVDs. To get the volume numbers, use the list disks command.

    acrocmd backup disk --volume=2-1,1-3 --split=4608 --loc="F:\my backups" --arc="my archive"
  • Backing up the entire machine to a file with a simplified name. For more details, see the --plain_archive parameter description. The operation log will be saved to a text file.

    acrocmd backup disk --loc=F:\ --arc=my_machine --plain_archive --log=D:\logs\log.txt
  • Backing up disks 1 and 2 excluding .bak files. The compression level will be set to maximum. The backup will be saved to a network folder. To get the disk numbers, use the list disks command.

    acrocmd backup disk --disk=1,2 --compression=high --exclude_mask=*.bak --loc=\\bkpsrv\backups --credentials=bkpuser,pass --arc=disk_archive
  • Creating an incremental backup of volume C:. The Volume Shadow Copy Service (VSS) will be enabled and will automatically select between the available hardware-based and software-based snapshot providers. The backup will be saved to a network folder.

    acrocmd backup disk --volume=C --backuptype=incremental --use_vss=auto --loc=\\bkpsrv1\backups --credentials=bkpuser,pass --arc=c_archive
  • Backing up the first (according to the list disks command output) dynamic volume in Windows or logical volume in Linux. The backup will be saved to a network folder.

    acrocmd backup disk --volume=DYN1 --loc=\\srv1\backups --credentials=netuser1,pass1 --arc=dyn1_arc

    For more information about selecting logical volumes in Linux, see Selecting logical volumes and MD devices for backup

  • Backing up all dynamic volumes in Windows or all logical volumes in Linux. The backup will be saved to a network folder.

    acrocmd backup disk --volume=DYN --loc=\\srv1\backups --credentials=netuser1,pass1 --arc=alldyn_arc

Recovering disks and volumes

Recovering disks

  • Recovering a machine from the latest backup of an archive residing in a network folder. Since neither the --disk nor the --volume parameter is specified, the command will recover all of the backed-up disks. Since neither the --target_disk nor the --target_volume parameter is specified, the software will automatically map the disks to the target machine's disks. If you run the command in the operating system, a reboot prompt will be displayed.

    acrocmd recover disk --loc=\\srv1\folder1 --credentials=user1,pass1 --arc=my_machine
  • Recovering hard disks 1 and 2 from the latest backup of an archive to hard disks 3 and 4.

    acrocmd recover disk --loc=F:\backups --arc=my_archive --disk=1,2 --target_disk=3,4
  • Recovering hard disk 2 from a backup located in an NFS shared folder to hard disk 1.

    acrocmd recover disk --loc=nfs://server/backups:/ --arc=my_archive --backup=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX --disk=2 --target_disk=1
  • Recovering two hard disks from the latest backup of an archive located in a network folder. Since the --target_disk parameter is not specified, the software will automatically map the disks to the target machine's disks.

    acrocmd recover disk --loc=\\bkpsrv\backups --credentials=netuser,pass --arc=disk_archive --disk=2,3
  • Recovering hard disk 1 from the latest backup of an archive to hard disk 4.

    The archive is specified by the file name of a backup that belongs to the archive (my_machine2.tib). Please be aware that the command will apply to the latest backup rather than to the one specified in the --arc parameter. If the archive metadata is lost, the command will apply to the latest backup of the backup chain. (A backup chain is a full backup and all of its dependent incremental and differential backups.)

    acrocmd recover disk --loc=F:\backups --arc=my_machine2.tib --disk=1 --target_disk=4

Recovering volumes

  • Recovering the second volume of the first disk from the latest backup of an archive.

    Since neither the --target_disk nor the --target_volume parameter is specified, the software will automatically map the volume to the original one. If the original volume is not found, the software will recover to the first unallocated space of a suitable size. If no unallocated space of a suitable size is found, the command will fail.

    acrocmd recover disk --loc=/home/user1/my_backups --arc=my_machine1 --volume=1-2
  • Recovering three volumes from a backup to the specified volumes.

    acrocmd recover disk --loc=F:\ --arc=my_machine --backup=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX --volume=1-1,1-2,2-1 --target_volume=3-1,3-3,4-1
  • Recovering a volume from a backup to hard disk 2. A new volume will be created starting from megabyte 8192. It will have the size of 6400 megabytes and the "active" flag.

    acrocmd recover disk --loc=\\bkpsrv\backups --credentials=netuser,pass --arc=my_archive --backup=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX --volume=1-1 --target_disk=2 --start=8192 --size=6400 --type=active
  • Recovering a basic volume from the latest backup of an archive to the first dynamic volume (in Windows) or logical volume (in Linux).

    acrocmd recover disk --loc=\\srv1\backups --credentials=netuser1,pass1 --arc=machine1_dyn1 --volume=2-1 --target_volume=DYN1
  • Recovering a basic volume (2-2) and a dynamic (logical) volume (DYN4) onto a basic disk.

    Since the --target_disk parameter is specified, the volumes will be recovered to the unallocated space of that disk. The resulting volumes will be basic. If no unallocated space of a suitable size is found, the command will fail.

    acrocmd recover disk --loc=F:\ --arc=my_machine --backup=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX --volume=2-2,DYN4 --target_disk=3
  • Recovering a dynamic (logical) volume from a backup to a dynamic (logical) volume.

    acrocmd recover disk --loc=\\srv1\backups --credentials=netuser1,pass1 --arc=alldyn_arc --backup=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX --volume=DYN3 --target_volume=DYN4
  • Recovering a volume to the unallocated space of a disk group. The resulting volume will be dynamic.

    In the following example, the type of the resulting volume will be simple because a basic volume was backed up.

    acrocmd recover disk --loc=F:\ --arc=my_machine --volume=2-3 --target_volume=UNALLOCATED-DYN

    In the following example, the type of the resulting volume will be inherited from the backed-up volume because a dynamic volume was backed up.

    acrocmd recover disk --loc=\\srv1\backups --credentials=netuser1,pass1 --arc=alldyn_arc --volume=DYN3 --target_volume=UNALLOCATED-DYN

Recovering MBR

  • Recovering an MBR of hard disk 1 from the latest backup of an archive located in Acronis Secure Zone to the same hard disk 1.

    acrocmd recover mbr --loc=atis:///asz --arc=my_archive --disk=1 --target_disk=1

Recovering logical volume structure

  • Creating the same logical volume structure on the local machine as in the latest backup of an archive. The machine must be booted with Linux-based bootable media.

    acrocmd recover lvm_structure --loc=\\bkpsrv\backups --credentials=netuser1,pass1 --arc=my_archive