Acronis® Backup & Recovery™ 10 Server for Linux 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 .........................................................................16 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.
--incremental --differential --compression:[0…9] --split:[size in MB] --log:[filename] restore --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] --harddisk:[disk number] --partition:[partition number] --target_harddisk:[disk number] --target_partition:[partition number] --start:[start sector] --fat16_32 --size:[partition size in sectors] --type
you specify --progress:[on | off] --log:[filename] --net_user:[username] --net_password:[password] --ftp_user:[username] --ftp_password:[password] list --password:[password] --index:N --asz:[number of archive] --filename:[file name] --vault:[path] --arc:[archive name] --arc_id:[archive id] --password:[password] --oss_numbers --log:[filename] --harddisk:X --partition:[partition number] --size:[ASZ size in sectors] Lists available drives and partitions.
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. Used in combination with the arc, or the arc_id option. The following locations are supported: Local folders, e.g.: --vault:/folder, or --vault:"/Folder 1" FTP and SFTP, e.g.: --vault:ftp://ServerA/Folder1 Network folders, e.g.
or: --filename:smb://hostname/sharename/filename –-net_user:username \ -– net_password:password --log:smb://hostname/sharename/logfilename –-log_net_user:username \ -– log_net_password:password Only the last two options can be used if the user name or password contains the @ or / symbols. To access an NFS network drive, specify the backup file name as follows: nfs://hostname/share name:/remote filename For example: trueimagecmd --list --filename:nfs://dhcp6223.acronis.com/sdb3/nfs_root:/mike/md1.
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. To get the numbers of pits, use pit_info. Separate multiple values with a comma, for example: --include_pits:2,4,5 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.
1.1.3 1.1.3.1 Specific options create harddisk:[disk number] Specifies the numbers of the hard disks to be imaged (comma separated). For example: --harddisk:1,3 You can obtain the list of available hard disks using the --list command. partition:[partition number] Specifies the partitions to include into the image file by numbers. The list of available partitions is provided by the --list command. Partition numbers are specified as -, e.g.
after:[post-data capture command] Enables to define the command to be automatically executed after data capture. 1.1.3.2 filebackup include:[names] Files and folders to be included in the backup (comma separated). For example: --include:'/home/bot/ATIESsafe.iso,/home/bot/ATIW.iso' exclude_names:[names] Files and folders to be excluded from the backup (comma separated). For example: --exclude_names:'/home/bot/ATIESsafe.
partition:[partition number] Specifies the partitions to restore by numbers. target_harddisk:[disk number] Specifies the hard disk number where the image will be restored. 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.
source disk MBR saved in the image. If the position is not empty, the existing entry will be moved to another position. 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.7 export target_vault:[target path] Specifies a path to the target location to export the archive to. The following target locations are supported: Local folders and unmanaged vaults, e.g.: --vault:/folder, or --vault:"/Folder 1" Network folders, e.g.: --vault:smb://Server/Share/ Managed vaults (for advanced product editions only), e.g.: -vault:bsp://StorageNode/VaultName FTP and SFTP, e.g.: --vault:ftp://ServerA/Folder1 CD, DVD – with the path specified as a local path, e.g.
FTP and SFTP, e.g.: --vault:ftp://ServerA/Folder1 CD, DVD – with the path specified as a local path, e.g.: --vault:/mnt/cdrom Acronis Secure Zone, e.g.: --vault:atis:///asz Tapes, e.g.: --vault:atis:///tape?0 Unmanaged vaults are specified by their path. For example, if a vault is located in a folder, specify the path to that folder. If the vault option is specified the filename option is ignored. arc:[archive name] Used in combination with the vault option.
1.1.3.10 asz_delete partition:[partition number] Specifies partitions to which free space will be added after the Acronis Secure Zone is deleted. If you specify several partitions, the space will be distributed proportionally based on each partition’s size. 1.1.3.11 clone harddisk:[disk number] Specifies a source hard disk which will be cloned to the new hard disk. target_harddisk:[disk number] Specifies the target hard disk number where the source hard disk will be cloned. 1.1.
The following command will list backups, contained in the archive /usr/backups/backups.tib, with their pit numbers. This command is designed to obtain pit numbers for consolidation: trueimagecmd --pit_info --filename:/usr/backups/backups.
Disk 1: 1-1 hda1 Pri,Act Table 31.35 MB 1-2 hda5 980.5 1-3 hda6 4.887 1-4 hda7 9.767 1-5 hda8 3.462 Disk 2: 2-1 (/1) hdd1 Pri,Act Table 2-2 hdd5 3 GB 2-3 hdd6 3.906 MB GB GB GB 26.67 MB 135.9 MB 1.751 GB 1.3 GB 4.806 GB GB FAT16 Table Linux Swap Ext2 Ext2 Ext2 4.627 GB 1.319 GB Ext3 Ext3 Ext3 Table You need to back up partition 2-1. Let’s suppose a complete image has to be created weekly, supported by incremental images created daily. To do this, place the respective executable files (e.g.
-l|--list Lists already mounted user mode block devices. -m|--mount mountpoint Mounts the archive image specified by the -f|--filename option into the folder specified by the mountpoint option. The partition index should be specified by the -i|--index option. Image file contents (partitions and their indices) may be listed by the trueimagecmd --list -filename:filename command. To mount an incremental image, you must have all previous incremental images and the initial full image.
-t|--fstype filesystem type Specifies the explicit filesytem type to be passed to the standard "mount" command. This option is useful if the standard "mount" command can't guess the filesystem type for some reason. -i|--index partition index Index of the partition. -w|--read-write Opens the image in read-write mode. After umount, all changed data will be saved into the archive with a new index.
exclude_masks 2 Index [masks] • 9, 10 exclude_names A [names] • 9, 10 Access to archives • 6 exclude_system • 10 after export • 13 [post-data capture command] • 10 arc [archive name] • 6, 14 arc_id F fat16_32 • 11 filebackup • 10 filename [archive id] • 6, 14 asz [number of archive] • 7 [filename] • 6, 13 filerestore • 12 ftp_password asz_create • 14 asz_delete • 15 [password] • 7 ftp_user Automatic image creation using cron service • 16 [username] • 7 B G Backup options • 8 General opti
N T net_password target_arc [password] • 8 net_user [target archive name] • 13 target_filename [username] • 7 [file name] • 12 target_folder O [target folder] • 12 original_date target_harddisk [on | off] • 12 oss_numbers • 8 [disk number] • 11, 12, 15 target_partition overwrite [older | never | always] • 12 [partition number] • 11 target_vault P [target path] • 13 partition [partition number] • 9, 11, 14, 15 password trueimagecmd usage examples • 15 Trueimagemnt usage examples • 19 type [