User Tools

Site Tools


backup:amanda:server_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
backup:amanda:server_installation [2012/06/11 11:56] aorthbackup:amanda:server_installation [2012/06/11 12:05] (current) aorth
Line 2: Line 2:
 Installation and configuration of Amanda on CentOS 5.x. Installation and configuration of Amanda on CentOS 5.x.
  
-==== Download and install ====+===== Download and install =====
 Find appropriate versions of Amanda for your OS at the [[http://www.zmanda.com/download-amanda.php|Download Amanda page]]. Find appropriate versions of Amanda for your OS at the [[http://www.zmanda.com/download-amanda.php|Download Amanda page]].
  
Line 34: Line 34:
 Oct 18 2011 12:07:22: === Amanda backup server installation started. ===</file> Oct 18 2011 12:07:22: === Amanda backup server installation started. ===</file>
  
-==== Configure ====+===== Configure =====
  
 === Detect the tape type === === Detect the tape type ===
Line 62: Line 62:
  
 === Create a config === === Create a config ===
-Create a config from the example ''tape-changer'' config template:+Create a config named "daily" from the example ''tape-changer'' config template:
  
 <code>sudo su - amandabackup <code>sudo su - amandabackup
-amserverconfig taurus --template tape-changer --tapedev /dev/nst0 --mailto a.orth@cgiar.org</code>+amserverconfig daily --template tape-changer --tapedev /dev/nst0 --mailto a.orth@cgiar.org</code>
  
-Edit the resulting ///etc/amanda/taurus/amanda.conf//:+Edit the resulting ///etc/amanda/daily/amanda.conf//:
   * add the "tapetype" block from above   * add the "tapetype" block from above
   * change "changerdev" to ''/dev/sg6'' instead of sg1 (use ''dmesg'' and ///proc/scsi/scsi// to figure out where the changer device is)   * change "changerdev" to ''/dev/sg6'' instead of sg1 (use ''dmesg'' and ///proc/scsi/scsi// to figure out where the changer device is)
  
-==== Test ====+===== Test =====
 Once your configuration is completed, run through a complete backup scenario to test if your settings are correct. Once your configuration is completed, run through a complete backup scenario to test if your settings are correct.
  
 <code>sudo su - amandabackup <code>sudo su - amandabackup
-amcheck taurus</code>+amcheck daily</code>
  
 Other than errors about tape labels, the command should work fine. Other than errors about tape labels, the command should work fine.
Line 81: Line 81:
 === Setup a disklist === === Setup a disklist ===
  
-Set up a "disklist" for the new config in ///etc/amanda/taurus/disklist//.  For now, just do something like so we can test quickly:+Set up a "disklist" for the new config in ///etc/amanda/daily/disklist//.  For now, just do something like so we can test quickly:
 <file>localhost /etc root-tar</file> <file>localhost /etc root-tar</file>
  
Line 91: Line 91:
  
 <code>mtx load 1 <code>mtx load 1
-amlabel taurus taurus-01 slot 1 -f</code>+amlabel daily daily-01 slot 1 -f</code>
  
 === Run a test backup === === Run a test backup ===
Line 98: Line 98:
  
 <code>sudo su - amandabackup <code>sudo su - amandabackup
-amdump taurus</code>+amdump daily</code>
  
 === Test recovery === === Test recovery ===
Line 118: Line 118:
 <code>amrecover> exit</code> <code>amrecover> exit</code>
  
-The restore might take a few minutes because the drive has to spool to the location of the file on the tape.  Be patient!+The restore might take a few minutes because the drive has to spool to the location of the file on the tape.  Be patient!  The contents of the restore will be found in whichever directory you started the restore from, ie ///tmp/restore// above.
  
 === Delete the temp tape === === Delete the temp tape ===
Line 125: Line 125:
  
 <code>sudo su - amandabackup <code>sudo su - amandabackup
-amrmtape taurus taurus-01</code>+amrmtape daily daily-01</code>
  
 === Label more tapes === === Label more tapes ===
Line 133: Line 133:
 <code>sudo su - <code>sudo su -
 mtx unload mtx unload
-for tapenum in {1..4}; do mtx load $tapenum; amlabel taurus taurus-0$tapenum slot $tapenum -f; mtx unload $tapenum; done</code>+for tapenum in {1..4}; do mtx load $tapenum; amlabel daily daily-0$tapenum slot $tapenum -f; mtx unload $tapenum; done</code>
backup/amanda/server_installation.1339415780.txt.gz · Last modified: 2012/06/11 11:56 by aorth