From a0ce12658f7ddb271ec62fd151d7b68396885703 Mon Sep 17 00:00:00 2001 From: Mikael Frykholm Date: Fri, 29 May 2015 08:59:55 +0200 Subject: [PATCH] Update documentation to working defaults --- README.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 63397f7..4014f96 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,25 @@ Butterbackup is a backup system which stores snapshots in btrfs on a central ser For now it is rather crude. To get started backing up some manual work is needed.

 Create /etc/butterbackup
-# echo "--exclude /tmp --exclude /proc --exclude /sys --exclude /dev" > /etc/butterbackup/default.cfg
+# cat > /etc/butterbackup/default.cfg
+[DEFAULT]
+exclude = /proc/, /sys, /tmp, /dev, /run
+store_dir = /mnt/data
+keep=10
+(ctrl-d to exit)
 # touch /etc/butterbackup/machine1.example.com
 # touch /etc/butterbackup/machine2.example.com
 # ssh-copy-id root@machine1.example.com
-# ssh-copy-id root@machine1.example.com
-# mkdir /mnt/data2
+# ssh-copy-id root@machine2.example.com
+# mkdir /mnt/data
 # mkfs.btrfs /dev/sdb1
-# mount /dev/sdb1 /mnt/data2  #hardcoded for now
+# mount /dev/sdb1 /mnt/data
+
+ +To override the default setting for a specific host do: +

+cat > /etc/butterbackup/machine1.example.com
+[host]
+exclude = /proc/, /sys, /tmp, /dev, /run, /home/mikael/.gvfs, /.snapshots
+keep=20
 
-- 2.39.2