Centralized Backup Server With Amanda On CentOS - Page 2

Set Up Client

1. Install amanda client with yum:

yum -y install amanda-client

2. Edit file .amandahosts to allow communications from server:

vi /var/lib/amanda/.amandahosts
gamma amanda 

3. Edit xinetd.d:

vi /etc/xinetd.d/amanda
Disable = no 

4. Start xinetd:

service xinetd start

5. Check Amanda service:

lsof | grep amanda

 

Backup Data

1. Check tapes and clients on server:

su - amanda
/usr/sbin/amcheck intra

2. Dump manually:

/usr/sbin/amdump intra

3. Add amdump to cron:

crontab –e
0 16 * * 1-5    /usr/sbin/amcheck -m intra
45 0 * * 2-6    /usr/sbin/amdump intra   

The first line checks the tape/clients and sends an email if it found something wrong (no email if everything is okay) at 4pm.

The second line dumps at 12.45am on weekdays.

 

Restore Data

1. Prepare tapes:

cd /tmp
/usr/sbin/amtape intra slot 1 # select slot1 (tape1)
/usr/sbin/ammt -t file:/backup/intra/slots rewind # rewind

2.1. Restore everything from every server:

/usr/sbin/amrestore file:/backup/intra/slots
2.2. Restore only a server and a directory:
/usr/sbin/amrestore file:/backup/intra/slots beta /var

3. Extract:

tar xvf <Restored files>
Share this page:

0 Comment(s)