Skip to content

disaster37/rancher-backup-gluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rancher-backup-gluster

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.

Backup options

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 set 0 0 0 * * *
  • TARGET_BACKEND: This is the target URL to externalize the backup. For example, to use FTP as external backup set ftp://login@my-ftp.com and add environment variable FTP_PASSWORD. For Amazon S3, set s3://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, set 7D. The default value is 7D.
  • BK_KEEP_FULL: How many full backup you should to keep. For example, to keep 3 full backup set 3. The default value is 3.
  • 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 set 1. The default value is set to 1.
  • VOLUME_SIZE: The volume size to store the backup (in MB). The default value is 25.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published