Difference between revisions of "RucioUpdateToNewVersion"
From GridPP Wiki
								
												
				 (Created page with "== Instructions To Update Rucio ==")  | 
				 (→Instructions To Update Rucio)  | 
				||
| Line 1: | Line 1: | ||
== Instructions To Update Rucio ==  | == Instructions To Update Rucio ==  | ||
| + | |||
| + | ===Pre-steps===  | ||
| + | # Using the daily backup of DB02 move this to DB03 and apply the database  | ||
| + | ## Find the latest backup  | ||
| + | ### grep  Transferred  /var/log/atlasbackup/atlasbackup.log | tail -1  | ||
| + | ## Retrieve the backup  | ||
| + | ### [root@ruciodb02 ~]# tape -r csfserv <BackUpNumber> <location for backup>/tape.<BackUpNumber>  | ||
| + | ## Move the backup to DB03 using SCP if backup not availale  | ||
| + | ### [root@ruciodb02 ~]# scp -i <Path/To/PrivateKey> /mnt/backfs/ruciodb02_db_backup_202108241613 root@ruciodb03.gridpp.rl.ac.uk:/var/lib/pgsql  | ||
| + | ## Move the tape backup to DB03  | ||
| + | ### [root@ruciodb02 ~]# scp -i <Path/To/PrivateKey> <<location for backup>/tape.714701 root@ruciodb03.gridpp.rl.ac.uk:/var/lib/pgsql  | ||
| + | ### Unpack the tape backup  | ||
Revision as of 09:10, 25 August 2021
Instructions To Update Rucio
Pre-steps
-  Using the daily backup of DB02 move this to DB03 and apply the database
-  Find the latest backup
- grep Transferred /var/log/atlasbackup/atlasbackup.log | tail -1
 
 -  Retrieve the backup
- [root@ruciodb02 ~]# tape -r csfserv <BackUpNumber> <location for backup>/tape.<BackUpNumber>
 
 -  Move the backup to DB03 using SCP if backup not availale
- [root@ruciodb02 ~]# scp -i <Path/To/PrivateKey> /mnt/backfs/ruciodb02_db_backup_202108241613 root@ruciodb03.gridpp.rl.ac.uk:/var/lib/pgsql
 
 -  Move the tape backup to DB03
- [root@ruciodb02 ~]# scp -i <Path/To/PrivateKey> <<location for backup>/tape.714701 root@ruciodb03.gridpp.rl.ac.uk:/var/lib/pgsql
 - Unpack the tape backup
 
 
 -  Find the latest backup