Size: 1995
Comment: Document backup-manager
|
Size: 2038
Comment: Bugzilla, not -sysadmin
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
This page describes the procedure for accessing and using our off-site backups. Only admins can do this -- if you want to get some file or directory back from the dead and are not an admin, please contact the hcoop-sysadmin list for assistance. | This page describes the procedure for accessing and using our off-site backups. Only admins can do this -- if you want to get some file or directory back from the dead and are not an admin, please [[https://bugzilla.hcoop.net/enter_bug.cgi|open a Bugzilla bug]]. |
Line 5: | Line 5: |
== Backups of AFS Volumes == | = Backups of AFS Volumes = |
Line 7: | Line 7: |
=== Navigating the available backups === | == Navigating the available backups == |
Line 16: | Line 16: |
=== Retrieving a backup === | == Retrieving a backup == |
Line 24: | Line 24: |
=== Restoring the volume dump to a volume with a new name === | == Restoring the volume dump to a volume with a new name == |
Line 29: | Line 29: |
backup-manager restore YYYY.MM.DD VOLNAME.dump.gz.aescrypt $VOLNAME.restored | backup-manager restore YYYY.MM.DD $VOLNAME.dump.gz.aescrypt $VOLNAME.restored |
Line 35: | Line 35: |
cat /vicepa/hcoop-backups/restored/$VOLNAME.dump.gz.aescrypt | \ | cat /vicepa/hcoop-backups/restored/YYYY.MM.DD-$VOLNAME.dump.gz.aescrypt | \ |
Line 41: | Line 41: |
=== Mounting the newly restored volume onto the filesystem === | == Mounting the newly restored volume onto the filesystem == |
Line 48: | Line 48: |
=== Restoring a particular file === | == Restoring a particular file == |
Line 54: | Line 54: |
=== Unmounting the restored volume === | == Unmounting the restored volume == |
Line 61: | Line 61: |
=== Renaming the restored volume so it takes the place of the damaged/corrupted/erased volume === | == Renaming the restored volume so it takes the place of the damaged/corrupted/erased volume == |
Line 70: | Line 70: |
=== Removing the restored volume === | == Removing the restored volume == |
Line 78: | Line 78: |
== Database Backups == | = Database Backups = |
Line 82: | Line 82: |
mkdir db cd db cat ../databases.tar.gz.aescrypt | \ |
mkdir YYYY.MM.DD-db cd YYYY.MM.DD-db cat ../YYYY.MM.DD-databases.tar.gz.aescrypt | \ |
This page describes the procedure for accessing and using our off-site backups. Only admins can do this -- if you want to get some file or directory back from the dead and are not an admin, please open a Bugzilla bug.
Contents
-
Backups of AFS Volumes
- Navigating the available backups
- Retrieving a backup
- Restoring the volume dump to a volume with a new name
- Mounting the newly restored volume onto the filesystem
- Restoring a particular file
- Unmounting the restored volume
- Renaming the restored volume so it takes the place of the damaged/corrupted/erased volume
- Removing the restored volume
- Database Backups
1. Backups of AFS Volumes
1.1. Navigating the available backups
Using backup-manager:
backup-manager list backup-manager list YYYY.MM.DD
1.2. Retrieving a backup
Using backup-manager:
backup-manager get YYYY.MM.DD $VOLNAME.dump.gz.aescrypt
1.3. Restoring the volume dump to a volume with a new name
Using backup-manager:
backup-manager restore YYYY.MM.DD $VOLNAME.dump.gz.aescrypt $VOLNAME.restored
Manually:
cat /vicepa/hcoop-backups/restored/YYYY.MM.DD-$VOLNAME.dump.gz.aescrypt | \ ccrypt -cdk /etc/backup-encryption-key | \ gunzip | \ vos restore deleuze /vicepa $VOLNAME.restored
1.4. Mounting the newly restored volume onto the filesystem
fs mkm /afs/hcoop.net/.old/tmp-mount $VOLNAME.restored vos release old
1.5. Restoring a particular file
# examine /afs/hcoop.net/.old/tmp-mount
1.6. Unmounting the restored volume
fs rm /afs/hcoop.net/.old/tmp-mount vos release old
1.7. Renaming the restored volume so it takes the place of the damaged/corrupted/erased volume
Do this if you want to restore an entire volume. This deletes the old volume and replaces it with the backup.
vos remove $VOLNAME vos rename $VOLNAME.restored $VOLNAME
1.8. Removing the restored volume
If you only wanted to restore a few files from the volume, you should remove the local copy of the backup volume when done.
vos remove -id $VOLNAME.restored
2. Database Backups
cd /vicepa/hcoop-backups/restored mkdir YYYY.MM.DD-db cd YYYY.MM.DD-db cat ../YYYY.MM.DD-databases.tar.gz.aescrypt | \ ccrypt -cdk /etc/backup-encryption-key | \ gunzip | \ tar -xvzf -