Browse Source

Add an example config file

master
Timur Demin 1 month ago
parent
commit
b01d592aad
Signed by: Timur Demin <me@tdem.in> GPG Key ID: 9EDF3F9D9286FA20
1 changed files with 25 additions and 0 deletions
  1. 25
    0
      backups.conf.example

+ 25
- 0
backups.conf.example View File

@@ -0,0 +1,25 @@
1
+# This file is a shell script that is sourced at the start of the backup script.
2
+# Feel free to hack on it as you like.
3
+
4
+# Only the first parameter is required.
5
+__BACKUP_DIR=/tmp/backups
6
+# __BACKUP_DIR_POSTGRES=/tmp/postgres_backups
7
+# __BACKUP_DIR_DOCKER=/tmp/docker_backups
8
+# __BACKUP_DIR_CONFIGS=/tmp/configs_dir
9
+
10
+# The default compression format. Can be anything tar(1) recognizes. Optional.
11
+__BACKUP_EXT=".tar.gz"
12
+# Purge the backups older than this value in days (find -ctime +DAYS). Optional.
13
+__BACKUP_AGE=2
14
+
15
+# A bash array containing the files/directories you want to save.
16
+# Required (if a -c or an -a backup is run).
17
+__BACKUP_FILES=(
18
+    /etc/backups.conf
19
+    /etc/postgresql
20
+)
21
+# A list of databases you want to back up while the -p backup is running.
22
+# Required (if you run the script with -p).
23
+__BACKUP_DATABASES=(
24
+    template1
25
+)

Loading…
Cancel
Save