Acronis® Backup & Recovery ® 10 Server for Linux Update 5 Command-Line Reference
Table of contents 1 Console mode in Linux ...........................................................................................................3 1.1 Backup, restore and other operations (trueimagecmd) ............................................................3 1.1.1 1.1.2 1.1.3 1.1.4 1.2 Automatic image creation using cron service .........................................................................18 1.3 Restoring files with trueimagemnt ..................................................
1 Console mode in Linux Console is a natural part of Linux OS. Acronis Backup & Recovery 10 supports it through the trueimagecmd command line tool. It provides a way to initiate data backup and recovery operations. trueimagecmd also enables you to automate backup with the ‘cron’ service. The trueimagecmd functionality is somewhat limited as compared to the GUI mode. trueimagecmd does not support operations that require: reboot of the system, such as restore a system partition or clone system drive.
folders --arc_id:[archive id] --filename:[filename] --password:[password] --crypt:[AES128|AES192|AES256] --incremental --differential --compression:[0…9] --split:[size in MB] --log:[filename] --silent restore --exclude_masks:[masks] --exclude_hidden --before:[pre-data capture command] --after:[post-data capture command] --progress:[on | off] --filename:[filename] --password:[password] Restores disks and partitions --asz:[number of archive] from an image --index:N --oss_numbers --log:[filename] --silent
Creates a consistent copy of the archive which will contain only the specified backups --password:[password] --log:[filename] --silent export --vault:[path] --arc:[archive name] --arc_id:[archive id] --include_pits:[pits numbers] --password:[password] --progress:[on | off] --log:[filename] --net_user:[username] --net_password:[password] --ftp_user:[username] --ftp_password:[password] --silent --target_vault:[target path] --target_arc:[target archive name] --password:[password] --index:N --asz:[number o
asrm_deactivate Deactivates the Acronis Startup Recovery Manager clone 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 dumpraidinfo Saves information about MD devices and LVM volumes to the /etc/Acronis directory 1.1.2 1.1.2.1 Common options Access to archives vault:[path] Specifies a path to the location that contains the archive.
arc_id:[archive id] Specifies the Universally Unique Identifier (UUID) of the archive, e.g.: --arc_id:183DE307-BC97-45CE-9AF7-60945A568BE8 If not specified, the arc option is used. If both the arc and arc_id options are specified, the arc_id option is used. filename:[filename] Archive name, if the archive location is other than ASZ.
To get a backup index from the ASZ, use asz_content. ftp_user:[username] Specify a user name for access to an FTP server. ftp_password:[password] Specify a password for access to an FTP server. net_user:[username] Specifies the user name for logon to the network share to save the resulting archive. net_password:[password] Specifies the password for logon to the network share to save the resulting archive. include_pits:[pits numbers] Specifies the backups (pits) to be included in the archive copy.
password hash is used for verification purposes. With this two-level security, the backup data is protected from any unauthorized access, but recovering a lost password is not possible. If the /crypt option is not specified, the password-protected archive will be not encrypted. split:[size in MB] Split the backup into parts of the specified size, if the archive location is other than ASZ. 1.1.2.
--partition:dyn1 raw Use this option to create an image of a disk (partition) with an unrecognized or unsupported file system. This will copy all disk/partition contents sector-by-sector. Without this option only the sectors containing useful system and user data are imaged (for the supported file systems). progress:[on | off] Shows/hides the progress information (percent completed). It is shown by default.
--exclude_names:'/home/bot/ATIESsafe.iso,/home/bot/MyProject/Old' exclude_masks:[masks] Applies masks to select files to be excluded from the backup. Use the common Linux masking rules. For example, to exclude all files with extension .sh, add *.sh. My???.sh will exclude all .sh 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.
target_partition:[partition number] Specifies the target partition number for restoring a partition over the existing one. If the option is not specified, the program assumes that the target partition number is the same as the partition number specified with the partition option. start:[start sector] Sets the start sector for restoring a partition to the hard disk unallocated space.
1.1.3.4 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.6 verify folder_name:[path] Specifies a path to the local folder that contains archives to verify. For example: --folder_name:'/home/bot/MyProject' By default, all archives stored in the folder and its subfolders will be verified. To exclude the subfolders from verification, add the --no_subdir (p. 14) option. no_subdir This option is used together with the /folder_name option. Prohibits verification of archives stored in the subfolders of the specified folder.
target_arc:[target archive name] The name of the target archive. Has to be unique within the target folder. If there is an archive with the same name, the operation will fail. 1.1.3.9 list filename:[filename] With this option, the image contents are displayed. When listing image contents, partition numbers may not coincide with those in the drives/partitions list, if the image does not contain all the disk partitions.
If not specified, the arc option is used. If both the arc and arc_id options are specified, the arc_id option is used. 1.1.3.10 asz_create 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. 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.
trueimagecmd --list The following command will list the partitions (and their indices) saved in backup.tib: trueimagecmd --list --filename:backup.tib The following command will check if there are licenses assigned to the local machine on the license server: trueimagecmd --ls_check The result is a list of used licenses.
without pit 1. Use this command to get rid of backups that you no longer need, while keeping the archive: trueimagecmd --consolidate --filename:/usr/backups/backups.tib \ --include_pits:2,3 --target_filename:/usr/backups/kons.tib The following command will restore the MBR from partition image D1 to the hard disk 1: trueimagecmd --deploy_mbr --filename:/usr/backups/D1.
#!/bin/bash /usr/sbin/trueimagecmd --create --partition:2-1 \ --filename:/mnt/backups/my_host/backup.tib Where /mnt/backups/my_host/backup.tib is the name and path of the image. The second executable file is needed to initiate daily creation of incremental images: #!/bin/bash /usr/sbin/trueimagecmd --create --incremental --partition:2-1 \ --filename:/mnt/backups/my_host/backup.tib If needed, users can set up their own backup schedule. For more information, see Help on the cron service. 1.
daemon/kernel space block device pair survives. Such a pair is listed by the -l|--list command with none written in the mountpoint field. -o|--loop A test command. Mounts a file, specified in the -f|--filename option, containing a valid Linux filesystem, as if it were an Acronis Backup & Recovery 10 archive.
Keeps the kernel space block device and user space daemon if an error occurs while mounting. This option may be used to get raw access to imaged partition data. 1.3.2 Trueimagemnt usage examples The following command will list the mounted archives: trueimagemnt --list The following command will mount the archive backup.tib of the partition with index 2, to /mnt/backup: trueimagemnt --mount /mnt/backup --filename backup.