Amanda Setup Server 1. Install From Yum: yum -y install amanda* From source: Download source package from http://www.amanda.org/ groupadd disk useradd amanda -G disk untar (tar zxvf amanda-.tar.gz) cd amanda- ./configure && make && make install (The following instruction is based on install from yum, if you install from source the path might be different) 2. backup original amanda.conf cp /etc/amanda/DailySet1/amanda.conf /etc/amanda/DailySet1/amanda.conf.bak 3. Edit xinetd.d vi /etc/xinetd.d/amanda, vi /etc/xinetd.d/amandaidx vi /etc/xinetd.d/amidxtape Change Disable = yes to Disable = no 4. Edit Amanda conf file vi /etc/amanda/DailySet1/amanda.conf change: org g" mailto "" netusage 600 Kbps # maximum net bandwidth for Amanda, in KB per sec tpchanger "chg-disk" tapecycle 6 tapes changerfile "/etc/amanda/daily/changer" tapedev "file:/backups/DailySet1/slots" tapetype HARDDISK #tapetype HP-DAT <--- comment this out #labelstr "^HISS[0-9][0-9]*$" <--- comment this out diskdir "/tmp" disksize 5000 MB amrecover_do_fsf yes amrecover_check_label yes amrecover_changer "changer" define tapetype HARDDISK { comment gBackup to HDh length 3072 mbytes # each tape is 3 Gigs } 5. Edit Disklist file (tell amanda which server, directory, dumptype). See amanda.conf for the dumptype vi /etc/amanda/DailySet1/disklist Format : e.g. beta.aplogics.com /var comp-user-tar alpha.aplogics.com /var comp-user-tar 6. Add hosts in disklist to host file vi /etc/hosts 7. Create slot and store backup mkdir -p -m 770 /backups/DailySet1/slots chown -R amanda:disk /backups mkdir -p -m 770 /etc/amanda/daily chown -R amanda:disk /etc/amanda/daily touch /etc/amanda/DailySet1/tapelist 8. change directory su - amanda cd /backups/DailySet1/slots 9. Create directory in backup directory for ((i=1; $i<=6; i++)); do mkdir slot$i; done (in this example 6 slots (tapes) are created) 10. Create sym link data to point to slot1 ln -s slot1 data 11. Test virtual tapes /usr/sbin/ammt -f file:/backups/DailySet1/slots status 12. Label the virtual tapes su - amanda for ((i=1; $i<=6; i++)); do /usr/sbin/amlabel DailySet1 DailySet1-0$i slot $i; done 13. Reset the tape /usr/sbin/amtape DailySet1 reset 14. Edit .amandahosts, the allow list vi /var/lib/amanda/.amandahosts e.g. amandahost amanda amandahost.localdomain amanda beta.aplogics.com amanda alpha.aplogics.com amanda gamma.aplogics.com amanda #<< amanda server gamma.aplogics.com root 15. start xinetd service xinetd start 16. Check lsof | grep amanda 17. Check backing up su - amanda /usr/sbin/amcheck DailySet1 18. Start dumping manually Note: you need to setup client before running this command /usr/sbin/amdump DailySet1 19. Add amdump work to crontab crontab -e 20. Restore cd /tmp /usr/sbin/amtape DailySet1 slot 1 # select slot1 (tape1) /usr/sbin/ammt -t file:/backups/DailySet1/slots rewind # rewind -- Restore everything from every server /usr/sbin/amrestore file:/backups/DailySet1/slots -- Restore only a server and a directory /usr/sbin/amrestore file:/backups/DailySet1/slots beta.aplogics.com /var 21. Extract tar xvf e.g. tar xvf beta.aplogics.com._var.20080630.0 [edit] Setup Client 1. Install From Yum: yum -y install amanda-client From source: Download source package from http://www.amanda.org untar (tar zxvf amanda-.tar.gz) cd amanda- ./configure && make && make install (The following instruction is based on install from yum, if you install from source the path might be different) 2. Edit .amandahosts, the allow list including every host and server vi /var/lib/amanda/.amandahosts e.g. amandahost amanda amandahost.localdomain amanda beta.aplogics.com amanda alpha.aplogics.com amanda gamma.aplogics.com amanda # << amanda server gamma.aplogics.com root 3. Edit xinet.d vi /etc/xinetd.d/amanda Disable = no 4. start xinetd service xinetd start 5. Check lsof | grep amanda