Username:

Password:

Remember me

 
Table of content    <<  Previous    



Restoring with Amanda

This chapter will describe how to restore data from tapes on backup server's side. First of all, we need to find data that we'd like to restore. For example, if you want to restore /home of server1.domain.com, login into backup server and run this command:

amadmin DailySet1 info server1.domain.com /home

If your system has been working properly, you should see:

Current info for server1.domain.com /home:
  Stats: dump rates (kps), Full:  2186.8,  -1.0,  -1.0
                    Incremental:  1413.2,  -1.0,  -1.0
          compressed size, Full:  88.2%,-100.0%,-100.0%
                    Incremental:  66.0%,-100.0%,-100.0%
  Dumps: lev datestmp  tape             file   origK   compK secs
          0  20070403  DailySet1-10     7 34495940 30409476 13906
          1  20070517  DailySet1-59     124 3532300 2330312 1649


We can see two backups done for directory /home. First with level 0 is full backup and second one with level 1 is incremental backup. In order to get most recent data, we need to extract both backups. Exctracting includes two steps – loading tape and pulling data from tape:

Lets first load tape as shown below:

amtape DailySet1 label DailySet1-10

Then we can extract the archive using command amrestore:

amrestore /dev/nst0 server1.domain.com /home

where:

/dev/nst0 is our tape drive.
Server1.domain.com is our server's name
/home is directory defined in disklist.


If everything is fine, you should get the file server1.domain.com ._home.20070403xxxxx.0.1, which is tar archive compressed by gzip. Then you need to extract this archive.

By the next step, you need to extract increment backup of your data:

amtape DailySet1 label DailySet1-59
amrestore /dev/nst0 server1.domain.com /home

as result, you should see file server1.domain.com._home.20070517xxxxxx, which is also a tar archive compressed by gzip. By extracting into the same directory where you have already extracted full backup, you will get most recent data available on your backup system.




Table of content    <<  Previous