]> git.frykholm.com Git - butterbackup.git/blobdiff - README.md
Applied patch from tuttle@somsants.net.
[butterbackup.git] / README.md
index 174a76c2dbad178c3ae435640a1f429b6254b1aa..4014f96121af437540c983ab58d85591e2bc9cd0 100644 (file)
--- a/README.md
+++ b/README.md
@@ -5,12 +5,26 @@ 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.
 <pre lang="bash"><code>
-Create /etc/Butterbackup
-# echo "--exclude /tmp --exclude /proc --exclude /sys --exclude /dev" > /etc/butterbackup/machine1.example.com
-# cp /etc/butterbackup/machine1.example.com /etc/butterbackup/machine2.example.com
+Create /etc/butterbackup
+# 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
+</code></pre>
+
+To override the default setting for a specific host do:
+<pre lang="bash"><code>
+cat > /etc/butterbackup/machine1.example.com
+[host]
+exclude = /proc/, /sys, /tmp, /dev, /run, /home/mikael/.gvfs, /.snapshots
+keep=20
 </code></pre>