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