Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5352291
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: LINUX

2006-02-10 10:09:58

backups at KReSIT
Chetan Vaity
22 February, 2003
[Many details to be added here] 
 
 
Figure 1: The backup setup at KReSIT
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. 
 
  1. Install amanda and amanda-client packages on paarth 
  2. On paarth, go to amanda's home dir and add the following lines to .amandahosts file 
    cygnus amanda
    cygnus.it.iitb.ac.in amanda
  3. On paarth, enable the amanda server on paarth by editing the /etc/xinetd.d/amanda file and restarting/reloading the xinetd server. 
  4. 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
  5. On cygnus, edit the disklist file (in /etc/amanda/CygnusDaily) and add the paarth partitions to be backed up. 
  6. Check the setup using "amcheck -c Cygnusdaily" 
  7. 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 
 
  1. amrecover CygnusDaily 
  2. amrecover> sethost localhost 
  3. amrecover> setdisk /var 
  4. amrecover> setdate 2003-02-17 
  5. amrecover> cd spool/lpd 
  6. amrecover> add acct 
  7. 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: 
  1. 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) 
  2. Insert a tape into the tape drive 
  3. mt -f /dev/nst0 status 
  4. mt -f /dev/nst0 rewind 
  5. 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
 
阅读(603) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~