This container permit to backup all glusterfs linked to this container (the glusterfs container need to have GLUSTER_VOLUMES as environment variable that list all volume name, comma seperated) on Rancher.
It get all volumes names by environment variable (GLUSTER_VOLUMES) provided by the link
feature.
It mean that use this parameters :
GLUSTER_VOLUMES
: list of volumes separated by comma
In fact, this container begin to mount all volumes of each containers linked to it, and then use duplicity to make external backup like FTP or Amazon S3. After that it umount all.
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
.