Skip to content

With the script, it is possible to do daily backups and to define which daily, weekly, backups should be kept in a folder. One monthly backup is also kept.

Notifications You must be signed in to change notification settings

bexis/backupPostgreSQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

PostgreSQL Backup Script

This script is based on the "Automated Backup on Linux"-wiki page from postgresql (https://wiki.postgresql.org/wiki/Automated_Backup_on_Linux).

With the script, it is possible to do daily backups and to define which daily, weekly, backups should be kept in a folder. One monthly backup is also kept.

Add the following line as cron job (asuming to use the definded BACKUP_DIR as folder).
0 1 * * * /srv/backups/postgres/backupDatabase.sh >> /srv/backups/postgres/backupDatabase.log 2>&1

About

With the script, it is possible to do daily backups and to define which daily, weekly, backups should be kept in a folder. One monthly backup is also kept.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages