Restoring Files with TLFBackup

If you've purchased the optional TLFBackup service for your dedicated server, you may restore files up to 30 days old at any time.
TLFBackup is powered by Amanda, the open source enterprise backup solution.   Full Amanda documentation may be found here.



How to Restore Files

Important - Follow these steps carefully!


1. Login or become the root user (using sudo or su)  on your server.


2. Start the 'amrecover' program, as shown.   Replace "yourconfiguration" with your own Amanda configuration name.


Hint: The configuration name may be obtained from the nightly backup report emails.

[root@hs9 ~]# amrecover -C yourconfiguration

AMRECOVER Version 3.3.2. Contacting server on newmanda.thelinuxfix.com ...

220 newmanda AMANDA index server (3.3.2) ready.

Setting restore date to today (2014-08-29)

200 Working date set to 2014-08-29.

200 Config set to internal.

200 Dump host set to hs9.linuxfix.com.

Use the setdisk command to choose dump disk to recover

Note:  If you have any difficulties completing this step, contact support@thelinuxfix.com.  Occasically backup client software needs to be updated, and may present issues if updates are required.


3. Set the date you wish to restore files from.

Hint:  The date format is YYYY-MM-DD

amrecover> setdate 2014-08-14

200 Working date set to 2014-08-14.


4. Use 'listdisk' to show all mountpoints stored, and 'setdisk' to select which to recover from.

amrecover> listdisk

 

200- List of disk for host hs9.linuxfix.com

 

201- /

 

201- /boot

 

201- /home

 

201- /usr

 

201- /usr/local

 

201- /var

 

201- /opt

 

201- /hsphere

 

200 List of disk for host hs9.linuxfix.com

 

amrecover> setdisk /home

 

200 Disk set to /home.


6. Change the local working directory to the same "disk" you selected above

 

amrecover> lcd /home

 

amrecover>



5. Use the commands 'cd', 'ls' to find the files you wish to restore.   Then use 'add' to add that file to the restoration queue.

Hint: You can use standard wildcards like "*" and "?" to add many files quickly.

amrecover> ls

 

2014-08-14-01-15-01 vsupport/

 

2014-08-14-01-15-01 jclient/

 

2014-08-14-01-15-01 lost+found/

 

2014-08-14-01-15-01 httpd2/

 

2014-08-14-01-15-01 httpd/

 

2014-08-14-01-15-01 bovers/

 

2014-08-14-01-15-01 jdoe/

 

2014-08-14-01-15-01 .

 

amrecover> cd jdoe

 

/home/jdoe

 

amrecover> ls

 

2014-08-14-01-15-01 testfile

 

2014-08-14-01-15-01 maldetect-current.tar.gz

 

2014-08-14-01-15-01 maldetect-1.4.2/

 

2014-08-14-01-15-01 .viminfo

 

2014-08-14-01-15-01 .ssh/

 

2014-08-14-01-15-01 .lesshst

 

2014-08-14-01-15-01 .bashrc

 

2014-08-14-01-15-01 .bash_profile

 

2014-08-14-01-15-01 .bash_logout

 

2014-08-14-01-15-01 .bash_history

 

2014-08-14-01-15-01 .

 

amrecover> add testfile

 

Added file /jdoe/test

 


6. When finished adding files to the queue, run the restore via the 'extract' command.

Hint: You may be prompted with tape-changing questions, and warnings about overwriting files.  Type "Y" then "enter" to these questions.

amrecover> extract

 

Extracting files using tape drive chg-disk:/mnt/extdrive/vtapes/internal on host newmanda.thelinuxfix.com.

The following tapes are needed: internal-1378

 

Extracting files using tape drive chg-disk:/mnt/extdrive/vtapes/internal on host newmanda.thelinuxfix.com.

Load tape internal-1378 now

Continue [?/Y/n/s/d]? Y

Restoring files into directory /home

All existing files in /home can be deleted

Continue [?/Y/n]? Y

 

./jdoe/test

 
7. Your files are now restored!  Type 'quit' to exit amrecover.

amrecover> quit

200 Good bye.



 



Was this answer helpful?

 Print this Article

Also Read

Bandwidth overage calculation

Bandwidth overage is calculated on the last day of the calendar month at a rate of $90 per...

Are your servers "Managed"?

In the dedicated server market, there is no strict definition as to what a "managed" and...

Reverse DNS (PTR Record) Policy

In an effort to reduce SPAM abuse, The Linux Fix is implementing new policies for client...

Installing the Management SSL-VPN Client

InstallationThe SSL-VPN client downloads are available via the Client Portal (Support ->...

Is Windows available on the TLFDS Servers?

TLF does not offer Windows as a supported operating system on our TLFDS and zVPS products....