全部博文(1144)
分类: LINUX
2006-02-10 10:09:58
backups at KReSIT
Chetan Vaity
22 February, 2003
[Many details to be added here]
1#1 |
I have written this down as I forget one thing or the other each time I add a new machine to the configuration.
Say we want to add paarth partitions to the CygnusDaily configuration on cygnus.
Install amanda and amanda-client packages on paarth
On paarth, go to amanda's home dir and add the following lines to .amandahosts file
cygnus amanda
cygnus.it.iitb.ac.in amanda
On paarth, enable the amanda server on paarth by editing the /etc/xinetd.d/amanda file and restarting/reloading the xinetd server.
On cygnus, add the following lines to the .amandahostsfile paarth amanda
paarth.it.iitb.ac.in amanda
paarth root
paarth.it.iitb.ac.in root
On cygnus, edit the disklist file (in /etc/amanda/CygnusDaily) and add the paarth partitions to be backed up.
Check the setup using "amcheck -c Cygnusdaily"
If you get the dreaded "Self check failed, host down?" message, one thing you should check is if there is a firewall running which is causing problems.
Let's say we want to recover the file "/var/spool/lpd/acct". Let's say we want the version of the file as on 17th-Feb-2003. Follow these steps, and you should be able to recover them with little effort.
Assume that the configuration file is "CygnusDaily". Let cygnus.it.iitb.ac.in be the server from where we want to recover the above file.
First create a recovery directory e.g amanda-recover, and cd into that directory before proceeding
amrecover CygnusDaily
amrecover> sethost localhost
amrecover> setdisk /var
amrecover> setdate 2003-02-17
amrecover> cd spool/lpd
amrecover> add acct
amrecover> extract
Now amanda will ask for the specific tapes to be inserted into the drive, do that and then just follow the instructions to recover the file
To directly archive an entire partition or a directory to tape:
Make an NFS mount of the required directory on the machine where the tape drive is installed. (presently we have tape drives on cygnus and akash)
Insert a tape into the tape drive
mt -f /dev/nst0 status
mt -f /dev/nst0 rewind
tar -cvf /dev/nst0 /path/to/be/backed/up (You may choose to compress the archive using the z option in tar)
To extract, run the above mentioned mt commands again, and then do tar -xvf /dev/nst0.
3 May 2003: Chetan: Added the ``Direct archivals and recovery'' section.
6 Mar 2003: Arun: Added the ``How to recover files'' section.
22 Feb 2003: Chetan: Created this document and added the ``How to add a server to existing backup configuration'' section.
About this document ...
backups at KReSIT
This document was generated using the translator Version 2002 (1.62)
Copyright © 1993, 1994, 1995, 1996, , Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999, , Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html -local_icons -show_section_numbers -split 0 -mkdir -dir backups_at_kresit_html backups_at_kresit.tex
The translation was initiated by on 2003-05-03