User guide
140 Copyright © Acronis International GmbH, 2002-2013
To back up the RAID-1 volume DYN2, run the following command:
acrocmd backup disk --volume=DYN2 --loc=/home/user --arc=my_archive
To back up all three hard disks with volumes, select the volumes 1-1, 1-2, 1-3, DYN1 and DYN2:
acrocmd backup disk --volume=1-1,1-2,1-3,DYN1,DYN2 --loc=/home/user --arc=my_archive
If you select Disk 3 or volumes 2-1, 2-2, 4-1 or 4-2, the program will create a raw (sector-by-sector)
backup.
4.10 Scheduling backups under Linux using the cron
service
To automate backups, you can use the cron service familiar to many UNIX users.
Example
Let’s assume that you need to back up a volume regularly. A full backup has to be created weekly,
supported by incremental backups created daily.
Use the list disks (p. 18) command to obtain the necessary volume number. For example, the
volume number is 2-1.
Create two executable files for the daily and weekly backup (for example, abr.cron) and place them
into the /etc/cron.daily and /etc/cron.weekly directories, respectively.
To initiate weekly full backups of volume 2-1, add the following line to the
/etc/cron.weekly/abr.cron file:
#!/bin/bash
acrocmd backup disk --volume=2-1 --loc=/mnt/my_archives/my_host --arc=my_archive
where /mnt/my_archives/my_host is the path to the backup location.
The second abr.cron file is needed to initiate daily incremental backups.
#!/bin/bash
acrocmd backup disk --volume=2-1 --backuptype=incremental
--loc=/mnt/my_archives/my_host --arc=my_archive
For more information, see Help of the cron service.
5 Comparison of the old and new command-line
syntax
The following table lists commands that were used in the Acronis Backup & Recovery 10
command-line utility, and the corresponding commands of the Acronis Backup & Recovery 11.5
command-line utility. This comparison can help you learn new commands faster and easier.
Old syntax
New syntax
asrm_activate
activate asrm
asrm_deactivate
deactivate asrm