Closed nodecentral closed 2 weeks ago
The deprecation warnings are just that—warnings. You should still be able to run borgmatic just fine even with those warnings in place. However if you'd like to future-proof your configuration so that the warnings don't turn into errors in future versions of borgmatic, then you just need to clean up your configuration. In this case, that looks like moving the options out of your hooks:
section to the top level and the removing hooks:
altogether. Note then that you might have two on_error
options so you'd need to pick which one you wanted to keep.
Many thanks for responding @witten - I removed the entire hooks
section , which removes the deprecated messages,
source_directories:
- /mnt/source
repositories:
- path: /mnt/borg-repository
one_file_system: true
# Passphase is set in varibable $BORG_PASSPHRASE
# encryption_passphrase: "DoNotForgetToChangeYourPassphrase"
compression: lz4
archive_name_format: 'backup-{now}'
keep_hourly: 2
keep_daily: 7
keep_weekly: 4
keep_monthly: 12
keep_yearly: 10
checks:
- name: repository
frequency: 2 weeks
- name: archives
frequency: always
- name: extract
frequency: 2 weeks
- name: data
frequency: 1 month
before_everything:
- echo "Starting a backup job."
after_everything:
- echo "Backup created."
on_error:
- echo "Error while creating a backup."
# healthchecks:
# ping_url: ${BORG_HEALTHCHECK_URL}
but still gives me the exit status 15
error - is that one of the two on_error
you were referring to ?
[~] # docker exec -it borgmatic /bin/sh
/ # borgmatic init --encryption repokey
/mnt/borg-repository is not a valid repository. Check repo config.
/mnt/borg-repository: Error running actions for repository
Command '('borg', 'info', '--json', '/mnt/borg-repository')' returned non-zero exit status 15.
/etc/borgmatic.d/config.yaml: An error occurred
summary:
/etc/borgmatic.d/config.yaml: An error occurred
/mnt/borg-repository: Error running actions for repository
Command '('borg', 'info', '--json', '/mnt/borg-repository')' returned non-zero exit status 15.
Need some help? https://torsion.org/borgmatic/#issues
/ #
/mnt/borg-repository is not a valid repository. Check repo config.
It looks like somewhere along the way, you must've reverted the "fix" you made above. To re-apply it, change:
repositories:
- path: /mnt/borg-repository
... to:
repositories:
- path: /mnt/borg-repository/repo
Trying to set up a docker-borgmatic instance and I’ve encountered a few issues, hoping someone can help..
My docker compose is as follows
My config.ymal is as follows..
From there I went in via the
docker exec -it borgmatic /bin/sh
to run the container for the first time and to do the encryption - see below..It was at this point that I followed some of the guidance within another issue post , which was to update the path in the config.yaml to
path: /mnt/borg-repository
topath: /mnt/borg-repository/repo
(https://github.com/borgmatic-collective/docker-borgmatic/issues/340)And then I restarted the container and tried again, this time it progress a bit further, but not sure if this is till right, due to the final summary about deprecated support.
How is this looking for people who have done this before ??