Merge branch 'master' of ssh://codewiz.org/git/bernie/wizbackup
[wizbackup.git] / INSTALL
1 == List the machines to backup ==
2
3 mkdir -p /backup/HOSTS
4 cat >/backup/HOSTS/example <<__EOF__
5 host1.example.com
6 host2.example.com
7 __EOF__
8
9
10 == Optionally, exclude files from backups ==
11
12 mkdir -p /backup/EXCLUDE
13 cat >/backup/EXCLUDE/ALWAYS <<__EOF__
14 /dev/
15 /mnt/
16 /proc/
17 /sys/
18 /selinux/
19 __EOF__
20
21 cat >/backup/EXCLUDE/host1.example.com <<__EOF__
22 /var/cache
23 __EOF__
24
25
26 == Install wizbackup cronjob ==
27
28 cat >/etc/cron.daily/wizbackup <<__EOF__
29 #!/bin/bash
30 wizbackup-driver /backup/HOSTS/example /backup
31 __EOF__
32
33
34 == Create an ssh keypair for the hosts ==
35
36 mkdir -p /etc/wizbackup
37 ssh-keygen -N '' -c "wizbackup@example.com" -f /etc/wizbackup/ssh_id
38 ssh-copy-id -f /etc/wizbackup/ssh_id.pub root@host1.example.com
39 ssh-copy-id -f /etc/wizbackup/ssh_id.pub root@host2.example.com