welcome: please sign in

Diff for "BackupInfo"

Differences between revisions 2 and 17 (spanning 15 versions)
Revision 2 as of 2007-08-27 03:25:15
Size: 500
Editor: netblock-68-183-71-43
Comment:
Revision 17 as of 2008-01-26 03:40:34
Size: 1710
Editor: MichaelOlson
Comment: Add vos release statement when unmounting volume
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.

== Backups of AFS Volumes ==

=== Getting access ===
Line 2: Line 8:
ssh FOO_admin@deleuze ssh FOO_admin@deleuze.hcoop.net
Line 5: Line 11:
}}}
Line 6: Line 13:
=== Navigating the available backups ===

{{{
Line 9: Line 19:
}}}
Line 10: Line 21:
cat $VOLNAME.dump.bz2.aescrypt | \ === Restoring the volume dump to a volume with a new name ===

{{{
cat $VOLNAME.dump.gz.aescrypt | \
Line 12: Line 26:
  bunzip2 | \   gunzip | \
Line 14: Line 28:
}}}
Line 15: Line 30:
fs mkm /afs/hcoop.net/.../tmp-mount $VOLNAME.restored === Mounting the newly restored volume onto the filesystem ===
Line 17: Line 32:
# examine /afs/hcoop.net/.../tmp-mount {{{
fs
mkm /afs/hcoop.net/.old/tmp-mount $VOLNAME.restored
vos release old
}}}
Line 19: Line 37:
fs rm /afs/hcoop.net/.../tmp-mount === Restoring a particular file ===

{{{
# examine /afs/hcoop.net/.old/tmp-mount
}}}

=== Unmounting the restored volume ===

{{{
fs rm /afs/hcoop.net/.old/tmp-mount
vos release old
}}}

=== 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.

{{{
Line 22: Line 57:
}}}
Line 23: Line 59:
do-singing-and-rejoicing-thing === Removing the restored volume ===
Line 25: Line 61:
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
Line 26: Line 66:

== Database Backups ==

{{{
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

1.1. Getting access

ssh FOO_admin@deleuze.hcoop.net

aklog -c megacz.com

cd /afs/megacz.com/hcoop-backup/

cd $DESIRED_BACKUP_DATE

1.3. Restoring the volume dump to a volume with a new name

cat $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

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)