welcome: please sign in

Diff for "BackupInfo"

Differences between revisions 5 and 20 (spanning 15 versions)
Revision 5 as of 2007-08-27 18:43:22
Size: 1275
Editor: MichaelOlson
Comment: Better hierarchy
Revision 20 as of 2008-11-11 03:29:14
Size: 1975
Editor: MichaelOlson
Comment: Promote headings so TOC looks decent
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. 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.
Line 3: Line 3:
== Mounting the backup volume == <<TableOfContents>>
Line 5: Line 5:
=== Getting access === = Backups of AFS Volumes =

== Navigating the available backups ==

Using backup-manager:
Line 8: Line 12:
ssh FOO_admin@deleuze.hcoop.net

aklog -c megacz.com
backup-manager list
backup-manager list YYYY.MM.DD
Line 13: Line 16:
=== Navigating the available backups === == Retrieving a backup ==

Using backup-manager:
Line 16: Line 21:
cd /afs/megacz.com/hcoop-backup/

cd $DESIRED_BACKUP_DATE
backup-manager get YYYY.MM.DD $VOLNAME.dump.gz.aescrypt
Line 21: Line 24:
=== Creating a local copy === == Restoring the volume dump to a volume with a new name ==

Using backup-manager:
Line 24: Line 29:
cat $VOLNAME.dump.bz2.aescrypt | \ backup-manager restore YYYY.MM.DD VOLNAME.dump.gz.aescrypt $VOLNAME.restored
}}}

Manually:

{{{
cat /vicepa/hcoop-backups/restored/$VOLNAME.dump.gz.aescrypt | \
Line 26: Line 37:
  bunzip2 | \   gunzip | \
Line 30: Line 41:
=== Mounting the local copy onto the filesystem === == Mounting the newly restored volume onto the filesystem ==
Line 33: Line 44:
fs mkm /afs/hcoop.net/.../tmp-mount $VOLNAME.restored fs mkm /afs/hcoop.net/.old/tmp-mount $VOLNAME.restored
vos release old
Line 39: Line 51:
# examine /afs/hcoop.net/.../tmp-mount # examine /afs/hcoop.net/.old/tmp-mount
Line 42: Line 54:
== Unmounting the backup volume == == Unmounting the restored volume ==
Line 45: Line 57:
fs rm /afs/hcoop.net/.../tmp-mount fs rm /afs/hcoop.net/.old/tmp-mount
vos release old
Line 48: Line 61:
== Restoring an entire volume from backups == == Renaming the restored volume so it takes the place of the damaged/corrupted/erased volume ==
Line 57: Line 70:
== Removing the local copy of the back-up volume == == Removing the restored volume ==
Line 62: Line 75:
vos remove $VOLNAME.restored vos remove -id $VOLNAME.restored
Line 64: Line 77:

= Database Backups =

{{{
cd /vicepa/hcoop-backups/restored
mkdir db
cd db
cat ../databases.tar.gz.aescrypt | \
  ccrypt -cdk /etc/backup-encryption-key | \
  gunzip | \
  tar -xvzf -
}}}

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.

1. Backups of AFS Volumes

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/$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 db
cd db
cat ../databases.tar.gz.aescrypt | \
  ccrypt -cdk /etc/backup-encryption-key | \
  gunzip | \
  tar -xvzf -

BackupInfo (last edited 2019-03-31 19:34:13 by ClintonEbadi)