This page describes the procedure for accessing and using our off-site backups.

== Mounting the backup volume ==

=== Getting access ===

{{{
ssh FOO_admin@deleuze.hcoop.net

aklog -c megacz.com
}}}

=== Navigating the available backups ===

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

cd $DESIRED_BACKUP_DATE
}}}

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

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