adjust one borgmatic config
This commit is contained in:
@@ -5,37 +5,26 @@ location:
|
|||||||
- '- /shuttle/home/.snapshot'
|
- '- /shuttle/home/.snapshot'
|
||||||
- '- /shuttle/home/*/.cache'
|
- '- /shuttle/home/*/.cache'
|
||||||
repositories:
|
repositories:
|
||||||
- /repo/home
|
- path: /repo/home
|
||||||
|
|
||||||
|
|
||||||
storage:
|
|
||||||
compression: lz4
|
compression: lz4
|
||||||
archive_name_format: '{now:%Y-%m-%d}'
|
archive_name_format: '{now:%Y-%m-%d}'
|
||||||
unknown_unencrypted_repo_access_is_ok: true
|
unknown_unencrypted_repo_access_is_ok: true
|
||||||
|
|
||||||
retention:
|
|
||||||
keep_daily: 7
|
keep_daily: 7
|
||||||
keep_weekly: 4
|
keep_weekly: 4
|
||||||
keep_monthly: 6
|
keep_monthly: 6
|
||||||
prefix: '20'
|
|
||||||
|
|
||||||
consistency:
|
|
||||||
checks:
|
checks:
|
||||||
- repository
|
- name: repository
|
||||||
- archives
|
- name: archives
|
||||||
check_last: 3
|
check_last: 3
|
||||||
prefix: '20'
|
|
||||||
|
|
||||||
hooks:
|
# log_json: true
|
||||||
before_backup:
|
loki:
|
||||||
- echo -e "\n\n"
|
url: http://host:3100/loki/api/v1/push
|
||||||
- echo "#"
|
labels:
|
||||||
- echo "# `date` - Starting a backup job."
|
app: borgmatic
|
||||||
- echo "#"
|
config: __config
|
||||||
after_backup:
|
hostname: __hostname
|
||||||
- echo "#"
|
|
||||||
- echo "# `date` - Backup created."
|
|
||||||
- echo "#"
|
|
||||||
on_error:
|
|
||||||
- echo "#"
|
|
||||||
- echo "# `date` - Error while creating a backup."
|
|
||||||
- echo "#"
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/usr/bin/borgmatic --stats -v 0 -c /config/home.yaml >> /log/home.log 2>&1
|
borgmatic --stats -v 0 -c /config/home.yaml >> /log/home.log 2>&1
|
||||||
/usr/bin/borgmatic --stats -v 0 -c /config/root.yaml >> /log/root.log 2>&1
|
borgmatic --stats -v 0 -c /config/root.yaml >> /log/root.log 2>&1
|
||||||
/usr/bin/borgmatic --stats -v 0 -c /config/opt.yaml >> /log/opt.log 2>&1
|
borgmatic --stats -v 0 -c /config/opt.yaml >> /log/opt.log 2>&1
|
||||||
/usr/bin/borgmatic --stats -v 0 -c /config/etc.yaml >> /log/etc.log 2>&1
|
borgmatic --stats -v 0 -c /config/etc.yaml >> /log/etc.log 2>&1
|
||||||
|
|
||||||
export REMOTE=/remote/server/bram
|
export REMOTE=/remote/server/bram
|
||||||
mkdir -p ${REMOTE}
|
mkdir -p ${REMOTE}
|
||||||
sshfs user@bram.veenboer.xyz:/media/helios/Bram ${REMOTE}
|
sshfs user@bram.veenboer.xyz:/media/helios/Bram ${REMOTE}
|
||||||
/usr/bin/borgmatic --stats -v 0 -c /config/bram.yaml >> /log/bram.log 2>&1
|
borgmatic --stats -v 0 -c /config/bram.yaml >> /log/bram.log 2>&1
|
||||||
umount ${REMOTE}
|
umount ${REMOTE}
|
||||||
|
|||||||
Reference in New Issue
Block a user