User:RobD: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
No edit summary
 
Line 1: Line 1:
== restore of a protected disk ==
== restore of a protected disk ==
I'm using GNU-TAR backup types here, amanda server/client  2.4.5-2  on FC4/FC5
* find out which backups/tapes you'll need to recover a server (as amanda user)
* find out which backups/tapes you'll need to recover a server (as amanda user)
  bash-3.00$ amadmin ambackup info server.domain.tld
  (amanda@backupserver:~)$ amadmin ambackup info server.domain.tld
* find which tapes are in which slots (as amanda user)
* find which tapes are in which slots (as amanda user)
  bash-3.00$ amtape  ambackup show
  (amanda@backupserver:~)$ amtape  ambackup show
* load a tape (as amanda user)
* load a tape (as amanda user)
  bash-3.00$ amtape ambackup slot 2
  (amanda@backupserver:~)$ amtape ambackup slot 2
* restore the data from that tape to current directory (as root) (restores everything on that tape), piped via GTAR
* restore the data from that tape to current directory (as root) (restores everything on that tape), piped via GTAR
  (root@server:~)# mkdir working
  (root@backupserver:~)# mkdir working
  (root@server:~)# cd working
  (root@backupserver:~)# cd working
  (root@server:working)# # amrestore file:/space/vtapes/ambackup/slots open.vpn.comwifinet.com | gtar --numeric-owner -xpGvf -
  (root@backupserver:working)# # amrestore file:/space/vtapes/ambackup/slots server.domain.tld
* repeat as required for all tapes listed in step (1)
* repeat as required for all tapes listed in step (1)
* scp files to destination
* scp files to destination
* use GNU/restore to restore from the image
* use GNU/tar to unzip the output from amanda (repeat as req)
<pre>[root@cwnwebhost ~]# restore -b 32 -if open.vpn.comwifinet.com._srv.20070508.0
[root@destination /]# tar -xpf /root/server.domain.tld._home.20070508.0
Checksum error 32511431762, inode 0 file (null)
restore: Tape is not a dump tape
[root@cwnwebhost ~]# restore -iv -b 32 -f /root/open.vpn.comwifinet.com._srv.20070508.0
Verify tape and initialize maps
Input is from a local file/pipe
Checksum error 32511431762, inode 0 file (null)
restore: Tape is not a dump tape
[root@cwnwebhost ~]#</pre>

Latest revision as of 19:20, 8 May 2007

restore of a protected disk

I'm using GNU-TAR backup types here, amanda server/client 2.4.5-2 on FC4/FC5

  • find out which backups/tapes you'll need to recover a server (as amanda user)
(amanda@backupserver:~)$ amadmin ambackup info server.domain.tld
  • find which tapes are in which slots (as amanda user)
(amanda@backupserver:~)$ amtape  ambackup show
  • load a tape (as amanda user)
(amanda@backupserver:~)$ amtape ambackup slot 2
  • restore the data from that tape to current directory (as root) (restores everything on that tape), piped via GTAR
(root@backupserver:~)# mkdir working
(root@backupserver:~)# cd working
(root@backupserver:working)# # amrestore file:/space/vtapes/ambackup/slots server.domain.tld
  • repeat as required for all tapes listed in step (1)
  • scp files to destination
  • use GNU/tar to unzip the output from amanda (repeat as req)
[root@destination /]# tar -xpf /root/server.domain.tld._home.20070508.0