This container permit to backup all Postgres databases link to this container (the official container image) on Rancher.
It get all database parameters by environment variable provided by the link
feature.
It mean that use this parameters :
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
In fact, this container begin to make a dump of all Postgres databases linked to it, and then use duplicity to make external backup like FTP or Amazon S3.
The following options permit to set the backup policy :
CRON_SCHEDULE
: When you should start backup (incremental if full is not needed). For example, to start backup each day set0 0 0 * * *
TARGET_BACKEND
: This is the target URL to externalize the backup. For example, to use FTP as external backup setftp://login@my-ftp.com
and add environment variableFTP_PASSWORD
. For Amazon S3, sets3://host[:port]/bucket_name[/prefix]
. Read the ducplicity man for all supported backend. There are no default value.TARGET_PATH
: The path were store backup on local and remote. The default value is/backup/postgres
.BK_FULL_FREQ
: The frequency when you should make a full backup. For example, if you should make a full backup each 7 days, set7D
. The default value is7D
.BK_KEEP_FULL
: How many full backup you should to keep. For example, to keep 3 full backup set3
. The default value is3
.BK_KEEP_FULL_CHAIN
: The number of intermediate incremental backup you should keep with the full backup. For example, if you should keep only the incremental backend after the last full backup set1
. The default value is set to1
.VOLUME_SIZE
: The volume size to store the backup (in MB). The default value is25
.