forked from vabene1111/DockerPostgresBackups
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.ini.template
More file actions
46 lines (34 loc) · 1.39 KB
/
config.ini.template
File metadata and controls
46 lines (34 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Default values for all other configs.
[DEFAULT]
# Absolute path to directory to store backups in
storage_dir: /srv/project/dumps
# Filename of the data directory backup archive
filename_prefix: dump_
# Include a timestamp in dump filenames
timestamp: True
# Define the format for timestamps (see http://strftime.org/ for format info)
# IMPORTANT: For the config to get parsed correctly you need to use two percent characters instead of one
timestamp_format: %%Y-%%m-%%d_%%H-%%M-%%S
# Absolute path to, but not including, the docker-compose.yml
docker_compose_path: /srv/project
# Absolute path to postgres data volume mountpath
pg_data_dir: /srv/project/postgresql
# Name of the postgres docker container
pg_docker_container: db
# Username to use when dumping data
pg_docker_user: dbuser
# Name of the rclone target
rclone_target:
# Path on the rclone target
rclone_path: backups/
# Delete backups older than given amount of days (-1 to disable deletion)
delete_days = 7
# simply copy and paste the above config and change [DEFAULT] to anything you like to create more configs
# you can leave out anything that is specified in default and does not change for the concrete configs (see example)
[website]
storage_dir = /srv/project/dumps/website
docker_compose_path: /srv/website
pg_data_dir: /srv/website/postgresql
pg_docker_container: db_website
pg_docker_user: website_user
rclone_path: backups/website