Files
Backing up files and folders
-
Backing up a file. The backup will be saved to a local folder.
acrocmd backup file --include=C:\documents\my_thesis.doc --loc=E:\backups\my_thesis --arc=my_thesis
-
Creating a backup of network folders. The backup will be saved to a local folder. The archive will be protected by a password and encrypted.
acrocmd backup file --include=\\srv1\folder1,\\srv2\folder2 --password=123 --encryption=aes256 --loc=D:\backups --arc=my_archive
-
Creating a backup of a local folder. The backup will be saved to network folder. The disk snapshot must be taken. If taking a snapshot is not possible, the backup will fail.
acrocmd backup file --include=D:\documents --snapshot=always --loc=\\bkpsrv\backups --credentials=netuser,pass --arc=my_archive
-
Backing up the user home directory in Linux. The backup will be saved to a SAMBA share.
acrocmd backup file --include=/home/anna --loc=\\bkpsrv\backups\anna --credentials=netuser1,pass1 --arc=home_dir
-
Creating a backup of a local folder. The backup will be placed to Acronis Cloud Storage, with encryption enabled.
acrocmd backup file --include=c:\work --password=123 --encryption=aes256 --loc=online:// --credentials="user@mail.com",pass --arc=my_archive
Recovering files and folders
-
Recovering a file from a backup stored in a local folder to the original folder. Since the
--overwrite
parameter is not specified, the existing file will be overwritten.acrocmd recover file --loc=E:\backups\my_thesis --arc=my_thesis --backup=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX --file=C:\documents\my_thesis.doc
-
Recovering a folder and its contents from the latest backup of an archive residing in Acronis Secure Zone to a local folder.
acrocmd recover file --loc=atis:///asz --arc=my_archive --file=C:\Documents --target=D:\my_folder
-
Recovering a folder and its contents from a backup. The archive is specified by the file name of a backup that belongs to the archive (
my_machine3.tib
). This syntax is useful for archives created using the--plain_archive
parameter.Please be aware that the command will apply to the backup specified in the
--backup
parameter rather than to the one specified in the--arc
parameter.acrocmd recover file --loc=E:\backups\my_machine --arc=my_machine3.tib --backup=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX --file=C:\Documents --target=D:\my_folder
-
Recovering all contents of the latest backup of an archive residing in a network folder to the original folder. The existing files and folders will not be overwritten. The files' security settings and original dates will be preserved.
acrocmd recover file --loc=nfs://server/backups:/ --arc=my_data --overwrite=never --recover_security=true --original_date
-
Recovering the user home directory in Linux from a backup stored on a SAMBA share.
acrocmd recover file --loc=\\bkpsrv\backups\anna --credentials=netuser1,pass1 --arc=home_dir --backup=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX --file=/home/anna
-
Recovering the contents of the latest backup of an archive residing in a network folder. The software will recover all files and folders except for the *.tmp and *.bak files.
acrocmd recover file --loc=\\srv1\folder1 --credentials=user1,pass1 --arc=my_docs --exclude=*.tmp,*.bak