add some kernel stuff for amd64
[mirror/dsa-wiki.git] / input / howto / backup.creole
1 = Debian backup =
2
3 storace.debian.org alias backup.debian.org is Debian's primary backup machine.
4 backuphost.debian.org is Debian's secondary backup machine.
5
6 == Backup organisation ==
7
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/}}}.
12
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.
17
18 Directories:
19
20 {{{
21   /srv/backup.debian.org/staging/
22                                  wiki.debian.org
23                                  cvs.debian.org
24                                  ...
25
26   /srv/backup.debian.org/backup/
27                                wiki.debian.org/
28                                                20050909
29                                                20050910
30                                                20050911
31                                                ...
32                                cvs.debian.org/
33                                               20050909
34                                               20050910
35                                               20050911
36                                               ...
37                                  ...
38 }}}
39
40 == Adding new backup directories ==
41
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.
48
49
50 * Backup items should be called {{{<host>/<directory>}}}.
51   Historically we also used {{{services/<servicename>}}}.
52
53 == Consistency checks ==
54
55 * Run {{{sudo -u nagios /usr/lib/nagios/plugins/dsa-check-dabackup-server}}}
56
57 == Restoring specific files ==
58
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)
63 * Choose the server
64 * Choose "enter a list of directories to restore for found job ids" (11)
65 * Login to the server
66 * Look at the files in {{{/var/tmp/bacula-restores/}}}
67 * Clean up the files in {{{/var/tmp/bacula-restores/}}}