aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2017-03-18 23:49:41 +0100
committerlookshe <github@lookshe.org>2017-03-18 23:49:41 +0100
commit7d20bbf82b91017ff79cbb5977a3d32019672ffb (patch)
treea6bedaef9aca020268ec8bfdab462e46597ac475
parent2f602062be06050a1a1b8010dd59b0072833cf27 (diff)
modified example configs to fit to borg backup
rotation and incremental is no longer needed due to use of borg backup removing old backups can be done with "borg prune" which will perhaps be added later with some configuration
-rw-r--r--main.cfg8
-rw-r--r--system.cfg6
-rw-r--r--user.cfg18
-rw-r--r--www.cfg8
4 files changed, 16 insertions, 24 deletions
diff --git a/main.cfg b/main.cfg
index f12cbb2..1d2de91 100644
--- a/main.cfg
+++ b/main.cfg
@@ -6,4 +6,12 @@ backupdir_local=/LOCAL/PATH/TO/MOUNT/POINT
logfile=$confdir/logfile.log
keyfile=/PATH/TO/KEYFILE/id_rsa
userserver="backupuser@backup.server"
+borg_local_path=/usr/local/sbin/borg
+borg_remote_path=/usr/local/sbin/borg
+# for borg specific settings take a look at its documentation https://borgbackup.readthedocs.io/
+borg_compression=zlib,9
+borg_encryption=none
+export BORG_PASSPHRASE="passphrase"
+export BORG_RSH="/usr/bin/ssh -i $keyfile"
+default_timestamp="%Y-%m-%d"
[/general]
diff --git a/system.cfg b/system.cfg
index 1986dce..15abd2e 100644
--- a/system.cfg
+++ b/system.cfg
@@ -2,14 +2,12 @@
rootdir=/
dirssingle="root etc"
backupdirsingle=system
+# use the same borg repo for all configured directories
+usesamerepo="yes"
[/general]
[root]
-rotate=10
time=1
-monthly=yes
[/root]
[etc]
-rotate=30
time=1
-monthly=yes
[/etc]
diff --git a/user.cfg b/user.cfg
index 5dcc22e..958fce0 100644
--- a/user.cfg
+++ b/user.cfg
@@ -1,23 +1,13 @@
[general]
rootdir=/home
-dirssingle="user1 user2 user3"
+dirssingle="user1 user2"
backupdirsingle=users
[/general]
[user1]
-#daily backup with 3 old versions
-rotate=3
+#daily backup
time=1
-monthly=no
[/user1]
[user2]
-#daily incremental backup
-rotate=inc
-time=1
-monthly=no
-[/user2]
-[user3]
-#weekly backup with 3 old versions
-rotate=3
+#weekly backup
time=7
-monthly=no
-[/user3]
+[/user2]
diff --git a/www.cfg b/www.cfg
index bc272f1..e6cb40c 100644
--- a/www.cfg
+++ b/www.cfg
@@ -4,14 +4,10 @@ dirssingle="domain.tld example.com"
backupdirsingle=www
[/general]
[domain.tld]
-#daily incremental backup with monthly snapshots
-rotate=inc
+#daily backup
time=1
-monthly=yes
[/domain.tld]
[example.com]
-#backup every third day and hold 5 old versions
-rotate=5
+#backup every third day
time=3
-monthly=no
[/example.com]