Jump to content

Test

From TetraWiki
Revision as of 11:46, 26 October 2020 by Sadat (talk | contribs) (Created page with "''Configuring backup in Amanda server.'' Logged in on Aandabackup server with '''root''' user then switch to '''amandabackup''' user with command '''su - amandabackup''' ope...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Configuring backup in Amanda server.


Logged in on Aandabackup server with root user then switch to amandabackup user with command su - amandabackup open file /etc/amanda/DailyBackup/disklist

This file containing the some entries of client server hostname with Directories which backed up of client server.



root-tar means the dump type (.rar format)


Example:- /RMANBACKUP/rsiprodbkp/BACKUP and other directories for backup.



Then Exit from amandabackup user and login to root user and make entry client server IP address and Hostname in /etc/hosts.


Activity at client server for taking the backup.


Install Amanda Backup Client .


Download attached Amanda_client.tar.gz file and copy it to on client machine in /tmp directory.

See we need a package to installation Amanda client and for that package there is some dependancies. So we make script to resolve the dependencies.

To extract the file with command tar –xvzf Amanda_client.tar.gz.


Logged in on client machine and extract tar file.



After extracting tar file change the directory and go to Amanda_client directory and run the script with command.sh Amanda_client.sh






Run this script only one time because its made a entry Amanda server entry on /var/lib/amanda/.amandahosts. & /etc/hosts file.


Note:- If this run script twice so its again made double entry on both file.

Like below screen shot.
















Note:- DailyBackup is directory on Amanda server where we have all the configuration file.

Like configuration of client machine which backed up on disklist file. Can see below picture.




Now logged in on amandaserver as amandabackup user and run

command amcheck DailyBackup (Directory). To check errors if any.











Now run amdump DailyBackup command to take backup. Its take some time for backup








To verify backup which we have recently take.

access the link: https://172.19.72.49/

Click Others >Amanda Backup System>Check backup status




You can see the rsidcporcdb01:/RMANBACKUP/rsiprodbkp/BACKUP 0 25.1823043823242g finished (20:35:35)



Note :- For recovery process we need a blank directory. Switch to blanks directory and then start the

amanda recovery process.


For recover process we need to run the amrecover command on Amanda backup server from root user


Then we run some command for recover the backup for any host for particular time stamp.


>listhost (Command for Listing Host whose backup is available)



>sethost HOSTNAME (Command for Set Host)


>listdisk (Command For Listing Host)




>setdisk DISKNAME (/RMANBACKUP/rsiprodb/BACKUP/BACKUP_04Jul2016 (Command to Set Disk)




>history (Command For Checking backup history in past)





>setdate 2016-07-10 (Command for Setting backup date)






ls (Command For Listing Files)




Run add command with backup file name.




>After run the extract (Command For Extracting Backup) come out from amrecover process and check the directory from where you start the recovery process. You will find the recover data over there.





================ ========== END========================================