diff options
author | lookshe <github@lookshe.org> | 2017-03-18 23:49:41 +0100 |
---|---|---|
committer | lookshe <github@lookshe.org> | 2017-03-18 23:49:41 +0100 |
commit | 7d20bbf82b91017ff79cbb5977a3d32019672ffb (patch) | |
tree | a6bedaef9aca020268ec8bfdab462e46597ac475 | |
parent | 2f602062be06050a1a1b8010dd59b0072833cf27 (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.cfg | 8 | ||||
-rw-r--r-- | system.cfg | 6 | ||||
-rw-r--r-- | user.cfg | 18 | ||||
-rw-r--r-- | www.cfg | 8 |
4 files changed, 16 insertions, 24 deletions
@@ -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] @@ -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] @@ -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] @@ -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] |