| 1 |
|
| 2 |
# DB engine |
| 3 |
DBENGINE="postgresql" |
| 4 |
|
| 5 |
# Substitute user to run dump commands |
| 6 |
SU_USERNAME="postgres" |
| 7 |
|
| 8 |
# Backup directory |
| 9 |
BACKUPDIR="/var/backups/autodbbackup/${DBENGINE}" |
| 10 |
|
| 11 |
# Include CREATE DATABASE in backups? |
| 12 |
CREATE_DATABASE="no" |
| 13 |
|
| 14 |
# Which day do you want weekly backups? (1 to 7 where 1 is Monday) |
| 15 |
# When set to 0, weekly backups are disabled |
| 16 |
DOWEEKLY=0 |
| 17 |
|
| 18 |
# Which day do you want monthly backups? |
| 19 |
# When set to 0, monthly backups are disabled |
| 20 |
DOMONTHLY=0 |
| 21 |
|
| 22 |
# Backup retention count for daily backups, older backups are removed. |
| 23 |
BRDAILY=7 |
| 24 |
|
| 25 |
# Compression tool |
| 26 |
COMP="zstd" |