From 4adff2883e3485576543f94f36164250d3096c26 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 18 Sep 2020 10:25:27 +0200 Subject: [PATCH] Spoof out a borgmatic configuration --- borgmatic.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 borgmatic.yml 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" }}