welcome: please sign in

Diff for "BackupInfo"

Differences between revisions 1 and 12 (spanning 11 versions)
Revision 1 as of 2007-08-25 21:09:57
Size: 282
Editor: dhcp-37-80
Comment:
Revision 12 as of 2007-10-11 02:00:14
Size: 1669
Comment:
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.

== Mounting the backup volume ==

=== 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 $DESIRED_VOLUME_TO_RESTORE | \ === Restoring the volume dump to a volume with a new name ===

{{{
cat $VOLNAME.dump.bz2.aescrypt | \
Line 13: Line 27:
  vos restore deleuze /vicepa $DESIRED_NAME_OF_RESTORED_VOLUME   vos restore deleuze /vicepa $VOLNAME.restored
Line 15: Line 29:

=== Mounting the newly restored volume onto the filesystem ===

{{{
fs mkm /afs/hcoop.net/.../tmp-mount $VOLNAME.restored
}}}

== Restoring a particular file ==

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

== Unmounting the restored volume ==

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

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

== 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 $VOLNAME.restored
}}}

== Database Backups ==

{{{
cat databases.tar.bz2.aescrypt | \
  ccrypt -cdk /etc/backup-encryption-key | \
  bunzip2 | \
  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. Mounting the backup volume

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.bz2.aescrypt | \
  ccrypt -cdk /etc/backup-encryption-key | \
  bunzip2 | \
  vos restore deleuze /vicepa $VOLNAME.restored

1.4. Mounting the newly restored volume onto the filesystem

fs mkm /afs/hcoop.net/.../tmp-mount $VOLNAME.restored

2. Restoring a particular file

# examine /afs/hcoop.net/.../tmp-mount

3. Unmounting the restored volume

fs rm /afs/hcoop.net/.../tmp-mount

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

5. 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 $VOLNAME.restored

6. Database Backups

cat databases.tar.bz2.aescrypt | \
  ccrypt -cdk /etc/backup-encryption-key | \
  bunzip2 | \
  tar -xvzf -

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