{"repo":"prodrigestivill/docker-postgres-backup-local","free":true,"listed":false,"github":"https://github.com/prodrigestivill/docker-postgres-backup-local","clone":"git clone https://github.com/prodrigestivill/docker-postgres-backup-local.git","description":"Backup PostgresSQL to local filesystem with periodic backups and rotate backups.","language":"Shell","stars":1189,"topics":["backup","docker","postgresql","docker-image","postgres"],"license":"MIT","category":"databases-storage","readme_excerpt":"postgres-backup-local Backup PostgresSQL to the local filesystem with periodic rotating backups, based on schickling/postgres-backup-s3. Backup multiple databases from the same host by setting the database names in POSTGRES DB separated by commas or spaces. Supports the following Docker architectures: linux/amd64 , linux/arm64 , linux/arm/v7 , linux/s390x , linux/ppc64le . Please consider reading detailed the How the backups folder works?. This application requires the docker volume /backups to be a POSIX-compliant filesystem to store the backups (mainly with support for hardlinks and softlinks). So filesystems like VFAT, EXFAT, SMB/CIFS, ... can't be used with this docker image. Usage Docker: Docker Compose: For security reasons it is recommended to run it as user postgres:postgres . In case of running as postgres user, the system administrator must initialize the permission of the destination folder as follows: Environment Variables Most variables are the same as in the official postgres image. env variable description -- -- BACKUP DIR Directory to save the backup at. Defaults to /backups . BACKUP SUFFIX Filename suffix to save the backup. Defaults to .sql.gz . BACKUP ON START If set to TRUE performs an backup on each container start or restart. Defaults to FALSE . BACKUP KEEP DAYS Number of daily backups to keep before removal. Defaults to 7 . BACKUP KEEP WEEKS Number of weekly backups to keep before removal. Defaults to 4 . BACKUP KEEP MONTHS Number of monthly backups to ","default_branch":null,"files":null,"tree":[],"storefront":"/r/prodrigestivill","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/prodrigestivill/docker-postgres-backup-local/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}