Note: Please
follow the document in sequence (i.e. Step A, B, C, D)
Step A: Amanda Server:
1.
Download Amanda packages and install them:
# wget http://www.zmanda.com/downloads/community/Amanda/3.3.3/Redhat_Enterprise_6.0/amanda-backup_server-3.3.3-1.rhel6.x86_64.rpm
Note:
Package name
amanda-backup_server-3.3.2-1.rhel6.x86_64.rpm
Installation error logs:
# vim /var/log/amanda/install.err
Installation logs:
# vim /var/log/amanda/install.log
2.
Enable amanda service in xinetd:
# vim /etc/xinetd.d/amandaserver
disable = no
disable = no
chkconfig xinetd on
service xinetd restart
Note: Make sure
the service is running or not
# netstat -a | grep amanda
udp 0 0 *:amanda *:*
udp 0 0 *:amanda *:*
3. Set
password for the amandabackup user:
# passwd amandabackup
****
****
# passwd amandabackup
****
****
4. Create a
directory for our vtapes, and set its ownership and permissions:
# mkdir -p /data/amanda/vtape/DailySet1
# chown amandabackup:disk /data/amanda/vtape/DailySet1
# chmod -R 750 /data/amanda/vtape/DailySet1
5. change to
user and run the command:
# su – amandabackup
-bash-4.1$ amserverconfig DailySet1 –template
harddisk –tapedev /data/amanda/vtape/DailySet1 –mailto root@localhost
–dumpcycle 1week –runspercycle 5 –tapecycle 12 –runtapes 1
6. from root user:
# cp
/var/lib/amanda/example/xinetd.amandaserver /etc/xinetd.d/amandaserver
Note: Because, server has been configured, copy the
amandaserver config file of Xinetd to its correct path.
#####################################################################
Step
C: Amanda Server:
11. Add the client at server system. We are going to add the
client 192.168.1.62 to backup the “/root” for client to DailySet1 tapes.
Run the command from ‘amandabackup’ user:
bash-4.1$ amaddclient –config DailySet1 –client 192.168.1.62 –diskdev /root –dumptype comp-user-tar
Run the command from ‘amandabackup’ user:
bash-4.1$ amaddclient –config DailySet1 –client 192.168.1.62 –diskdev /root –dumptype comp-user-tar
12. Copy file from ‘root’ user:
# cp /var/lib/amanda/example/xinetd.amandaclient
/etc/xinetd.d/amandaclient
Note: Because, we
have added a client, now copy the amandaserver config file of Xinetd to its
correct path.
13. Add client
system in server /etc/hosts file:
# echo “192.168.1.62 samba.example.com”
>> /etc/hosts
14. Adding
client to servers amandahost:
# echo “samba.example.com root amindexd
amidxtaped” >> /var/lib/amanda/.amandahosts
15. Login
from amandabackup user:
-bash-4.1$ amcheck DailySet1
DONE
16. Taking the backup of the client:
-bash-4.1$ amdump DailySet1
Note: it will be
at /data/amanda/vtape/DailySet1/
##################################################################
Step
B:
Amanda Client:
7. Download
the package and install the client:
# wget http://www.zmanda.com/downloads/community/Amanda/3.3.3/Redhat_Enterprise_6.0/amanda-backup_server-3.3.3-1.rhel6.x86_64.rpm
8. Set
password for the amandabackup user:
# passwd amandabackup
****
****
# passwd amandabackup
****
****
9.
To recover on a Linux client, you must first specify the tape device on the
server to use. In each Linux clients we change the file /etc/amanda/amanda-client.conf
Change this line:
tapedev
“tape:/dev/YOUR-TAPE-DEVICE-HERE” # your tape device
to this:
tapedev
“file://data/amanda/vtape/DailySet1″ # your tape device
10. Add the
amanda server to clients /etc/hosts file:
192.168.1.64 amanda.example.com amanda
192.168.1.64 amanda.example.com amanda
#####################################################################
Step
D:
On client system, recover a file:
17. As root user:
# amrecover DailySet1
Note: Error message link:
#####################################################################
Notes:
1. by default files and directories when you install AMANDA:
# yum install amanda-backup_server-3.3.2-1.rhel6.x86_64.rpm
[root@amanda Desktop]# find / -name amanda
/var/log/amanda
/var/lib/amanda
/var/amanda
/usr/lib64/amanda
/usr/share/amanda
/usr/libexec/amanda
/etc/amanda
2. copy ".pub" key to amanda user home dir as authorized_keys on both systems.
Then run command:
# amservice samba.example.com ssh noop </dev/null
Notes:
1. by default files and directories when you install AMANDA:
# yum install amanda-backup_server-3.3.2-1.rhel6.x86_64.rpm
[root@amanda Desktop]# find / -name amanda
/var/log/amanda
/var/lib/amanda
/var/amanda
/usr/lib64/amanda
/usr/share/amanda
/usr/libexec/amanda
/etc/amanda
2. copy ".pub" key to amanda user home dir as authorized_keys on both systems.
Then run command:
# amservice samba.example.com ssh noop </dev/null
Change 'ssh' to "bsdtcp"
<you will get OPTIONS in output>
3.
3.1. passwordless ssh from server (root, amandabackup) to client (root,amandabackup)
3.2. run command:
# amservice <other system> ssh noop </dev/null
<you will get OPTIONS in output>
3.
3.1. passwordless ssh from server (root, amandabackup) to client (root,amandabackup)
3.2. run command:
# amservice <other system> ssh noop </dev/null
No comments:
Post a Comment