test
[hcoop/zz_old/ikiwiki] / BackupInfo.mdwn
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.
2
3 == Backups of AFS Volumes ==
4
5 === Getting access ===
6
7 {{{
8 ssh FOO_admin@deleuze.hcoop.net
9
10 aklog -c megacz.com
11 }}}
12
13 === Navigating the available backups ===
14
15 {{{
16 cd /afs/megacz.com/hcoop-backup/
17
18 cd $DESIRED_BACKUP_DATE
19 }}}
20
21 === Restoring the volume dump to a volume with a new name ===
22
23 {{{
24 cat $VOLNAME.dump.bz2.aescrypt | \
25 ccrypt -cdk /etc/backup-encryption-key | \
26 bunzip2 | \
27 vos restore deleuze /vicepa $VOLNAME.restored
28 }}}
29
30 === Mounting the newly restored volume onto the filesystem ===
31
32 {{{
33 fs mkm /afs/hcoop.net/.old/tmp-mount $VOLNAME.restored
34 vos release old
35 }}}
36
37 === Restoring a particular file ===
38
39 {{{
40 # examine /afs/hcoop.net/.old/tmp-mount
41 }}}
42
43 === Unmounting the restored volume ===
44
45 {{{
46 fs rm /afs/hcoop.net/.old/tmp-mount
47 }}}
48
49 === Renaming the restored volume so it takes the place of the damaged/corrupted/erased volume ===
50
51 Do this if you want to restore an entire volume. This deletes the old volume and replaces it with the backup.
52
53 {{{
54 vos remove $VOLNAME
55 vos rename $VOLNAME.restored $VOLNAME
56 }}}
57
58 === Removing the restored volume ===
59
60 If you only wanted to restore a few files from the volume, you should remove the local copy of the backup volume when done.
61
62 {{{
63 vos remove -id $VOLNAME.restored
64 }}}
65
66 == Database Backups ==
67
68 {{{
69 cat databases.tar.bz2.aescrypt | \
70 ccrypt -cdk /etc/backup-encryption-key | \
71 bunzip2 | \
72 tar -xvzf -
73 }}}