Last active
January 30, 2023 14:46
-
-
Save s-chb/63674d88c70155270f45bc4ca3e2404f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################## | |
## POSTGRESQL BACKUP CONFIG ## | |
############################## | |
# Optional system user to run backups as. If the user the script is running as doesn't match this | |
# the script terminates. Leave blank to skip check. | |
BACKUP_USER= | |
# Optional hostname to adhere to pg_hba policies. Will default to "localhost" if none specified. | |
HOSTNAME= | |
# This dir will be created if it doesn't exist. This must be writable by the user the script is | |
# running as. | |
BACKUP_DIR=/opt/docker-compose/backup/ | |
#### SETTINGS FOR ROTATED BACKUPS #### | |
# Which day to take the weekly backup from (1-7 = Monday-Sunday) | |
DAY_OF_WEEK_TO_KEEP=1 | |
# Number of days to keep daily backups | |
DAYS_TO_KEEP=7 | |
# How many weeks to keep weekly backups | |
WEEKS_TO_KEEP=5 | |
###################################### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment