From: root Date: Sat, 12 Nov 2011 03:39:28 +0000 (-0500) Subject: Add installation instructions X-Git-Url: https://codewiz.org/gitweb?p=wizbackup.git;a=commitdiff_plain;h=750d593276a1321a0530bd32028a2ac8c734ac46;hp=4d66f86bb04ff5c54a0bab875edfb6cfd1e73c6b Add installation instructions --- diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..33e031f --- /dev/null +++ b/INSTALL @@ -0,0 +1,39 @@ +== List the machines to backup == + +mkdir -p /backup/HOSTS +cat >/backup/HOSTS/example <<__EOF__ +host1.example.com +host2.example.com +__EOF__ + + +== Optionally, exclude files from backups == + +mkdir -p /backup/EXCLUDE +cat >/backup/EXCLUDE/ALWAYS <<__EOF__ +/dev/ +/mnt/ +/proc/ +/sys/ +/selinux/ +__EOF__ + +cat >/backup/EXCLUDE/host1.example.com <<__EOF__ +/var/cache +__EOF__ + + +== Install wizbackup cronjob == + +cat >/etc/cron.daily/wizbackup <<__EOF__ +#!/bin/bash +wizbackup-driver /backup/HOSTS/example /backup +__EOF__ + + +== Create an ssh keypair for the hosts == + +mkdir -p /etc/wizbackup +ssh-keygen -N '' -c "wizbackup@example.com" -f /etc/wizbackup/ssh_id +ssh-copy-id -f /etc/wizbackup/ssh_id.pub root@host1.example.com +ssh-copy-id -f /etc/wizbackup/ssh_id.pub root@host2.example.com