Acronis® Backup & Recovery™ 10 Workstation Command Line Reference
Table of contents 1 Command-line mode and scripting in Windows ....................................................................... 3 1.1 Agent for Windows command-line utility ................................................................................. 3 1.1.1 1.1.2 1.1.3 1.1.4 1.2 Scripting ...................................................................................................................................26 1.2.1 1.2.2 1.2.3 2 Supported commands .............................
1 Command-line mode and scripting in Windows Acronis Backup & Recovery 10 supports the command-line mode and enables backup automation by executing XML scripts. Acronis Backup & Recovery 10 uses the Acronis True Image Echo command line utility with the following additions: 1. 2. 3. 4. 5. Ability to use the before/after data capture commands. Ability to use the VSS support option. Ability to check for a license on the license server with the /ls_check command. Ability to use file exclusion at disk backup.
create Creates an image of specified disks and partitions filebackup Backs up specified files and folders deploy Restores disks and partitions, except for the MBR, from an image 4 /vault:[path] /arc:[archive name] /arc_id:[archive id] /filename:[file name] /password:[password] /asz:[number of archive] /net_user:[username] /net_password:[password] /ftp_user:[username] /ftp_password:[password] /incremental /differential /compression:[0…9] /split:[size in MB] /oss_numbers /progress:[on|off] /reboot /log:[f
deploy_mbr /vault:[path] /arc:[archive name] Restores the MBR from /arc_id:[archive id] a disk or partition /filename:[file name] image /password:[password] /asz:[number of archive] /index:N /net_user:[username] /net_password:[password] /ftp_user:[username] /ftp_password:[password] /oss_numbers /reboot /log:[file name] /log_net_user:[remote user] /log_net_password:[password] /harddisk:[disk number] /target_harddisk:[disk number] filerestore /target_folder:[target folder] /overwrite:[older|never|always]
consolidate Creates a consistent copy of the archive which will contain only the specified backups export Creates a copy of an archive or a selfsufficient part copy of an archive in the location you specify convert Converts an image to virtual disk format for using with a virtual machine /include_pits:[pits numbers] /filename:[file name] /password:[password] /ftp_user:[username] /ftp_password:[password] /reboot /log:[file name] /log_net_user:[remote user] /log_net_password:[password] /target_filename:[f
/net_user:[username] /net_password:[password] /log:[file name] /log_net_user:[remote user] /log_net_password:[password] *for a split image, the name of the last created file unplug /letter:X /letter:all Disconnects the image connected as a virtual drive asz_create Creates the Acronis Secure Zone on the selected drive /password:[password] /oss_numbers /reboot /log:[file name] /log_net_user:[remote user] /log_net_password:[password] asz_content /password:[password] /harddisk:X /partition:[partition numb
clone /reboot Clones a hard disk /harddisk:[disk number] /target_harddisk:[disk number] help Shows usage ls_check Checks if there are licenses for the local machine on the license server 1.1.2 1.1.2.1 Common options Access to archives vault:[path] Specifies a path to the location that contains the archive. Used in combination with the arc, or the arc_id option. The following locations are supported: Local folders, e.g.: /vault:C:\Test, or /vault:"C:\Test 1" FTP and SFTP, e.g.
b) Archive name, when restoring or deleting files from ASZ. Can be obtained with asz_files. If the vault option is specified the filename option is ignored. password:[password] a) Password for the archive, if the archive location is other than ASZ. b) Password for the ASZ, if archive location is ASZ. asz:[number of archive] Addresses to the ASZ and selects the archive (a full backup with or without increments). To get the archive number, use asz_content.
1.1.2.2 Backup options incremental Set the backup type to incremental. If not specified or there is no basic full backup, a full backup will be created. differential Set the backup type to differential. If not specified or there is no basic full backup, a full backup will be created. compression:[0…9] Specify the data compression level. It ranges from 0 to 9 and is set to 3 by default. split:[size in MB] Split the backup into parts of the specified size, if the archive location is other than ASZ. 1.1.
1.1.3 Specific options 1.1.3.1 create harddisk:[disk number] Specifies the hard disks to include into the image file. The list of available hard disks is provided by the /list command. An image may contain data of more than one hard disk. In that case, separate disk numbers by commas, e.g.: /harddisk:1,3 By specifying /harddisk:DYN you will back up all dynamic volumes present in the system. partition:[partition number] Specifies the partitions to include into the image file.
progress:[on | off] Shows/hides the progress information (percent completed). It is shown by default. exclude_names:[names] Files and folders to be excluded from the backup (comma separated). For example: /exclude_names:E:\MyProject\111.doc,E:\MyProject\Old exclude_masks:[masks] Applies masks to select files to be excluded from the backup. Use the common Windows masking rules. For example, to exclude all files with extension .exe, add *.exe. My???.exe will exclude all .
exclude_masks:[masks] Applies masks to select files to be excluded from the backup. Use the common Windows masking rules. For example, to exclude all files with extension .exe, add *.exe. My???.exe will exclude all .exe files with names consisting of five symbols and starting with “my”. exclude_system Excludes all system files from the backup. exclude_hidden Excludes all hidden files from the backup.
partition:[partition number] Specifies the partitions to restore. Dynamic volumes are specified with the prefix DYN, e.g.: /partition:DYN1 target_harddisk:[disk number] Specifies the hard disk number where the image will be restored. By specifying /target_harddisk:DYN you will select unallocated space on all dynamic disks that are present in the system. target_partition:[partition number] Specifies the target partition number for restoring a partition over the existing one.
if the target disk is the 1st according to BIOS and it has no other primary partitions, the restored partition will be set active if the target disk is the 1st according to BIOS and there are other primary partitions on it, the restored partition will be set logical if the target disk is not the 1st, the restored partition will be set logical. preserve_mbr When restoring a partition over an existing one, the target partition is deleted from the disk along with its entry in the target disk MBR.
1.1.3.5 filerestore target_folder:[target folder] Specifies a folder where folders/files will be restored (a target folder). If not specified, the original path is re-created from the archive. overwrite:[older | never | always] This option allows you to keep useful data changes made since the backup being restored was done.
1.1.3.7 export net_src_user:[username] Specifies the user name for logon to the network share to access the source archive. net_src_password:[password] Specifies the password for logon to the network share to access the source archive. ftp_src_user:[username] Specifies the user name for logon to the FTP/SFTP server to access the source archive. ftp_src_password:[password] Specifies the password for logon to the FTP/SFTP server to access the source archive.
1.1.3.8 convert target_filename:[file name] Specifies the path to and name of the virtual disk file to be created. The file extension corresponds to the type of virtual machine to which the virtual disk will be added: VMware virtual machine - .vmdk MS virtual machine and Citrix XenServer - .vhd Parallels virtual machine - .hdd. harddisk:[disk number] Specifies the hard disks to convert by numbers. For each disk, a separate virtual disk will be created.
If the vault option is specified the filename option is ignored. vault:[path] Specifies a path to the location whose archives you want to list. Along with archive names, it lists Universally Unique Identifiers (UUID) that are used with the arc_id option. The following locations are supported: Local folders, e.g.: /vault:C:\Test , or /vault:"C:\Test 1" FTP and SFTP, e.g.: /vault:ftp://ServerA/Folder1 Network folders, e.g.
1.1.3.11 unplug letter:X Specifies the virtual drive to be disconnected by letter. letter:all Disconnects all virtual drives. 1.1.3.12 asz_create harddisk:X Specifies the hard disk number where the Acronis Secure Zone will be created. partition:[partition number] Specifies partitions from which free space will be taken for Acronis Secure Zone. size:[ASZ size in sectors | unallocated] Sets the Acronis Secure Zone size (in sectors).
1.1.4 1.1.4.1 trueimagecmd.exe usage examples Image disks and partitions The following command will create an image named 1.tib of partitions 2-1 and 1-3: trueimagecmd /create /filename:"C:\Test\1.tib" /partition:2-1,1-3 The image will be saved to the C:\Test\ folder. The following command will create an image of partitions 2-1 and 1-3 in the Acronis Secure Zone: trueimagecmd /create /asz /partition:2-1,1-3 The following command will create an image named 1.
A new logical partition will be created on disk 3 starting from sector 63. The partition will occupy about 64000 sectors—the exact size will depend on disk geometry and the type of the file system. The following command will restore partition 1-1, stored in image Server30Cdrive.tib, protected with password ‘123qwe’, to partition 2-1. The restored partition will be of the active type: trueimagecmd /deploy /filename:z:\Server30Cdrive.
C:\Program Files\Acronis\BackupAndRecovery>trueimagecmd /pit_info /filename:\\srv\elenel\kons.tib Pit number: 1 type: image; kind: base; date: 6/27/2009 11:39:10 AM Pit number: 2 type: image; kind: incremental; date: 6/27/2009 11:43:13 AM Pit number: 3 type: image; kind: incremental; date: 6/27/2009 11:44:04 AM Pit number: 4 type: image; kind: incremental; date: 6/27/2009 11:48:22 AM Pit number: 5 type: image; kind: incremental; date: 6/27/2009 11:50:32 AM Operation has succeeded.
The following command will list contents of the specified image: trueimagecmd /list /filename:"C:\My Folder\Backup.tib" The following command will list all archives and their UUID's in the specified location: trueimagecmd /list /vault:D:Backups The following command will list all backups of the specified archive: trueimagecmd /list /vault:D:Backups /arc:"Archive 1" 1.1.4.
1.1.4.11 Acronis Secure Zone: managing backups by file names The following command will list the Acronis Secure Zone size, free space and contents using generated filenames: trueimagecmd /asz_files /password:aszpw Assume that the contents of Acronis Secure Zone are as follows: C:\Program Files\Acronis\BackupAndRecovery>trueimagecmd /asz_files /password: aaa ASZ size: 5.387 GB ASZ free space: 4.363 GB FILE name: AAA2.
C:\Program Files\Acronis\BackupAndRecovery>trueimagecmd /asz_files /password: aaa ASZ size: 5.387 GB ASZ free space: 4.363 GB FILE name: AAA2.TIB; size: 56414317 byte type: image, base; creation time: 2/16/2009 3:43:34 PM type: image, incremental; creation time: 4/25/2009 11:44:47 AM FILE name: FAAA.TIB; size: 3125550 byte type: file, base; creation time: 8/22/2009 12:28:40 PM FILE name: FAAB2.
/nowait – an optional script execution argument. Enables to terminate TrueImageTerminal before backup is finished. Example: TrueImageTerminal /execute:C:\MyBackup.tis /nowait By pressing Ctrl+C you can forcibly turn off backup progress output and switch TrueImageTerminal to a background operation. You can terminate the backup operation executed by TrueImageTerminal by pressing Ctrl+B. 1.2.2 Script structure Scripts are written in the XML language and you can use the following tags: Source (p.
Split splits a large image file into a number of smaller files of the specified size, which can be provided in bytes, kilobytes, megabytes, etc. Password adds password protection to an image file. 1.2.3 Script usage examples The following example illustrates the usage of a script to back up two partitions (logical drives), C and F. mybackup2.tib is specified as an incremental image file. High compression level is selected and the image will be split into 650-MB parts for recording to CD-R/RW media.
convert • 18 2 Index A Convert an image to virtual disk • 23 create • 11 D Access to archives • 8 Acronis Secure Zone deleting backups • 25 managing backups by archive numbers • 24 managing backups by file names • 25 after deploy • 13 deploy_mbr • 15 differential • 10 E exclude_hidden • 12, 13 exclude_masks [post-data capture command] • 12, 13 Agent for Windows command-line utility • 3 [masks] • 12, 13 exclude_names arc [archive name] • 8, 19 arc_id [archive id] • 8, 19 asz [number of archive] • 9
G [username] • 9, 16, 17 General options • 10 O H Options • 27 harddisk [disk number] • 11, 13, 15, 18, 20 Options specific for Universal Restore • 15 original_date [on | off] • 16 X • 20 oss_numbers • 10 I overwrite Image disks and partitions • 21 include [older | never | always] • 16 P [names] • 12 include_pits partition [partition number] • 11, 14, 19, 20 [pits numbers] • 9 incremental • 10 password [password] • 9 index N•9 preserve_mbr • 15 progress L [on | off] • 12 letter R al
[size in MB] • 10 start vm_type [vmware|esx|Microsoft|parallels] • 18 [start sector] • 14 Supported commands • 3 T Target • 27 target_arc [target archive name] • 17 target_filename [file name] • 16, 18 target_folder [target folder] • 16 target_harddisk [disk number] • 14, 15, 20 target_partition [partition number] • 14 target_vault [target path] • 17 trueimagecmd.