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