Standalone backup agents for Linux, Mac, AIX & Solaris workloads on-premises or in the public cloud
Post Reply
cdesch
Veeam ProPartner
Posts: 20
Liked: 7 times
Joined: Jul 06, 2016 11:25 am
Full Name: Christian Desch
Contact:

CLI based file-level recovery

Post by cdesch »

hi all,

can i use veeamconfig ( backup list / point list / point restore --id ... ) to recover single files / directories to another location on the same VM ?

If yes, could you please give me an example, because i was only able to mount a certain backup point, but not to recover a file inplace or relocated.

thx, Chris
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: CLI based file-level recovery

Post by PTide »

Hi,

Yes, you can. Here is what you should do:

1. List existing points for the particluar backup job:

Code: Select all

veeamconfig point list --backupid %backup_job_id here%

Job name                          Oib UUID                                Type       Created at        Is corrupt
localhost.localdomain BackupJob1  {cf856bd9-b43b-4208-9507-ca3b3252781a}  Full       2016-11-01 17:27  false
localhost.localdomain BackupJob1  {fd7e9123-9abb-42d5-a5ee-4afbee96a8a4}  Increment  2016-11-02 21:52  false
localhost.localdomain BackupJob1  {01f26751-4316-4ac0-8de2-3e3327bbe7f1}  Increment  2016-11-02 21:54  false
localhost.localdomain BackupJob1  {9026451f-bf49-494a-8bf6-8054810803ec}  Increment  2016-11-02 22:03  false
2. Pick the point that you want to restore from and mount it to the directory of your choice:

Code: Select all

veeamconfig point mount --id cf856bd9-b43b-4208-9507-ca3b3252781a --mountdir /example_dir
Restore point is mounted.
Session ID: [{01d667b4-dbd8-4ea5-8ff4-7a79785daa1c}].
Logs stored in: [/var/log/veeam/Mount/Session_20161105_000319_{01d667b4-dbd8-4ea5-8ff4-7a79785daa1c}].
3. Browse the /example_dir to and copy required files/directories from the backup:

Code: Select all

cp -R /example_dir/boot/grub /grub_restored
Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests