Skip to main content

command line restore all files?

Thread needs solution

With Acronis Backup Advanced 12.5 command line tool I have followed the commands to make a backup. The files created have the *.tibx file extension. When I restore an archive I generally like to restore all contents. Sometimes I do not know the drive (letter) that the backup was performed on. I cannot seem to find the command parameter for

--file=

that will allow it to restore all contents. Some examples of what I have been trying are such:

 

acrocmd recover file --loc="D:\Sandbox\Code" --arc="testOD.tibx" --file=* --target="C:\Test" 


acrocmd recover file --loc="D:\Sandbox\Code" --arc="testOD.tibx" --file="D:\\" --target="C:\Test" 

The 2nd command above will work, however I want to tell the program I do not know the contents of the archive and I want to restore all contents. If I leave out

--file=

all together it does not work and the command line tool returns an error. A restore without the the

--target=

and the

--file=

parameter will do what I want but only to the original location. A lot of times I do not want this. I simply want the command that states restore all  the files in the archive, keep the original directory structure, and restore to an alternate location. Understanding that I don't know the contents or the drives it was created from. Thanks

 

0 Users found this helpful

Hi

Currently wildcards ("*", "?") are not supported in the "--file" option. In future versions we will add wildcards support for this option (internal ID:ABR-135402).

Workaround:

Run command "acrocmd list content" to view root folders in the backup. If you want to view content of non-last backup, you should specify "--backup" parameter which value can be obtained in the output of "acrocmd list backups" command.

Example:

acrocmd list content --loc=g:\ --arc=my_arc --output=raw

This command will show root folders in the last backup in the archive.

After that, you can concatenate list of root folders using comma (",") and use resulting string as value of "--file" option.