Jump to content

Test: Difference between revisions

From TetraWiki
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..."
 
Sadat (talk | contribs)
Blanked the page
 
Line 1: Line 1:
''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.
[[Image:Image1.png]]
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.'''
[[Image:Image2.png]]
'''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.
[[Image:Image3.png]]
After extracting tar file change the directory and go to '''Amanda_client '''directory and run the script''' '''with command'''.sh Amanda_client.sh'''
[[Image:Image4.png]]
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.
[[Image:Image5.png|top]]
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.
[[Image:Image6.png|top]]
Now logged in on amandaserver as amandabackup user and run
command''' amcheck DailyBackup (Directory). '''To check errors if any.
[[Image:Image7.png]]
Now run '''amdump DailyBackup''' command to take backup. Its take some time for backup
[[Image:Image8.png]]
To verify backup which we have recently take.
access the link: [https://172.19.72.49/ https://172.19.72.49/]
Click '''Others >Amanda Backup System>Check backup status'''
[[Image:Image9.png]]
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
[[Image:Image10.png|top]]
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) '''
[[Image:Image11.png|top]]
'''>sethost HOSTNAME (Command for Set Host) '''
[[Image:Image12.png|top]]'''>listdisk (Command For Listing Host) '''
[[Image:Image13.png|top]]
'''>setdisk DISKNAME (/RMANBACKUP/rsiprodb/BACKUP/BACKUP_04Jul2016 (Command to Set Disk) '''
[[Image:Image14.png|top]]
'''>history (Command For Checking backup history in past) '''
[[Image:Image15.png|top]]
'''>setdate 2016-07-10 (Command for Setting backup date) '''
[[Image:Image16.png|top]]
'''ls (Command For Listing Files)'''
[[Image:Image17.png|top]]
Run '''add''' command with backup file name. [[Image:Image18.png|top]]
'''>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. '''
[[Image:Image19.png|top]]
<nowiki>================ ========== END========================================</nowiki>

Latest revision as of 11:49, 26 October 2020