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 ...

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

Use the setdisk command to choose dump disk to recover

Note:  If you have any difficulties completing this step, contact  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


201- /


201- /boot


201- /home


201- /usr


201- /usr/local


201- /var


201- /opt


201- /hsphere


200 List of disk for host


amrecover> setdisk /home


200 Disk set to /home.

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


amrecover> lcd /home



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




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

The following tapes are needed: internal-1378


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

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



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

Reverse DNS (PTR Record) Policy

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

Dedicated Server IPMI Management

PrerequisitesIn order to use the TLFHosting SSL-VPN to manage your dedicated server, you must:...

Is Windows available on the TLFDS Servers?

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

Accessing your server via SSH

Some TLFHosting products allow you to login with SSH, also known as Secure Shell.   SSH...

Are your servers "Managed"?

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