3 storace.debian.org alias backup.debian.org is Debian's primary backup machine.
4 backuphost.debian.org is Debian's secondary backup machine.
6 == Backup organisation ==
8 {{{/srv/backup.debian.org}}} contains two directories, {{{staging}}} and
9 {{{backup}}}. The latter contains the backup and is organised in directories
10 with date directories that contain all the files from that particular day. The
11 number of kept copies is configured in files in {{{/etc/da-backup-manager/}}}.
13 The {{{/staging/}}} directory is used by the clients, i.e. the .debian.org
14 hosts that have something valuable to backup. The contents of the particular
15 directories is pushed from root to root@backup.debian.org via rsync via a
16 restricted SSH session based on key-authentication.
21 /srv/backup.debian.org/staging/
26 /srv/backup.debian.org/backup/
40 == Adding new backup directories ==
42 * install da-backup on the client
43 * create a crontab that runs da-backup daily at some convenient time
44 * configure the directories in {{{/etc/da-backup}}}
45 * configure how many copies of the directory should be kept in
46 backuphost's {{{/etc/da-backup-manager/}}}
47 * run {{{da-backup -v}}} on the client to see if it all works.
50 * Backup items should be called {{{<host>/<directory>}}}.
51 Historically we also used {{{services/<servicename>}}}.
53 == Consistency checks ==
55 * Run {{{sudo -u nagios /usr/lib/nagios/plugins/dsa-check-dabackup-server}}}
57 == Restoring specific files ==
59 * Login to the bacula director {{{dinis.debian.org}}}
60 * run {{{sudo bconsole}}}
61 * Use the {{{restore}}} command
62 * Choose "find the job ids of the most recent backup for a client" (9)
64 * Choose "enter a list of directories to restore for found job ids" (11)
66 * Look at the files in {{{/var/tmp/bacula-restores/}}}
67 * Clean up the files in {{{/var/tmp/bacula-restores/}}}