diff --git a/borgmatic.yml b/borgmatic.yml new file mode 100644 index 0000000..fc52e29 --- /dev/null +++ b/borgmatic.yml @@ -0,0 +1,29 @@ +location: + repositories: + - {{ env "BORGBASE_REPO" }} + + storage: + compression: auto,zstd + encryption_passphrase: CHANGEME + archive_name_format: "{hostname}-{now}" + + retention: + keep_daily: 3 + keep_weekly: 4 + keep_monthly: 12 + keep_yearly: 2 + prefix: "{hostname}-" + + consistency: + checks: + - disabled + check_last: 3 + prefix: "{hostname}-" + +hooks: +mysql_databases: + - name: {{ env "DB_TABLE" }} + hostname: {{ env "DB_HOST" }} + port: 3306 + username: { { env "DB_USER" }} + password: { { secret "db_password" }}