4 trueimagecmd usage examples – Acronis True Image Echo Server for Linux - User Guide User Manual
Page 74

12.1.4 Trueimagecmd usage examples
• This will list available partitions:
trueimagecmd --list
• This will list the partitions (and their indices) saved in backup.tib:
trueimagecmd --list --filename:backup.tib
• This will create an image named backup.tib of partition 1-1:
trueimagecmd --partition:1-1 --filename:backup.tib \
--create
• This will create an incremental image of the partition above:
trueimagecmd --partition:1-1 --filename:backup.tib \
--create --incremental
• This will create an image of partition 1-1 in the Acronis Secure Zone:
trueimagecmd --partition:1-1 --asz --create
• This will restore a partition from backup.tib:
trueimagecmd --partition:1-1 --filename:backup.tib \
--restore
• This will back up the folder /usr/kerberos/lib to the FTP server location:
trueimagecmd --filebackup --include:'/usr/kerberos/lib' \
--filename:ftp://myftp.com/Backup/MyLib.tib --ftp_user:usr1 \
--ftp_password:passw1
• This will back up the folder /bin to the shared folder on host1 and create the
operation log in the shared folder on host2:
trueimagecmd --filebackup --include:’/bin' \
--filename:smb://username1:password1@host1/dir/MyBin.tib \
--log:smb://username2:password2@host2/dir/Mylog1.log
• This 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.tib
The list will look like the following:
Pit number: 1
type: file; kind: base; date: 10/18/07 2:45:02 PM
Pit number: 2
type: file; kind: incremental; date: 10/18/07 2:47:38 PM
Pit number: 3
type: file; kind: incremental; date: 10/18/07 2:49:58 PM
• This will create in the folder /usr/backups an archive consisting of two files: kons.tib,
(pit 2 of the archive /usr/backups/backups.tib) and kons2.tib (pit 3 of the archive
/usr/backups/backups.tib). Therefore, the ‘kons’ archive is a copy of the ‘backups’
archive without pit 1. Use this command to get rid of backups that you need not any
more while keeping the archive.
74 Copyright © Acronis, Inc., 2000-2007