From: Bernie Innocenti Date: Mon, 9 Aug 2021 23:09:35 +0000 (+0200) Subject: Rename INSTALL to README.md X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=d454ae5cfdfd06635987c29c9bdf69ee08259505;p=wizbackup.git Rename INSTALL to README.md --- diff --git a/INSTALL b/INSTALL deleted file mode 100644 index 33e031f..0000000 --- a/INSTALL +++ /dev/null @@ -1,39 +0,0 @@ -== 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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..33e031f --- /dev/null +++ b/README.md @@ -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