https://github.com/murphyadam/postgres-backup-scripts
Automated PostgreSQL Backup on Linux
https://github.com/murphyadam/postgres-backup-scripts
Last synced: 3 months ago
JSON representation
Automated PostgreSQL Backup on Linux
- Host: GitHub
- URL: https://github.com/murphyadam/postgres-backup-scripts
- Owner: MurphyAdam
- Created: 2021-03-10T19:04:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-10T19:29:53.000Z (over 5 years ago)
- Last Synced: 2025-10-09T04:19:12.842Z (9 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# postgres-backup-scripts
Automated PostgreSQL database Backup on Linux.
1. - `pg_backup.config` - The main configuration file. This should be the only file which needs user modifications.
2. - `pg_backup.sh` - The normal backup script which will go through each database and save a gzipped and/or a custom format copy of the backup into a date-based directory.
3. - `pg_backup_rotated.sh` - The same as above except it will delete expired backups based on the configuration.
4. - Simple crontab job that runs the backup script at 00:00 on every day-of-week from Sunday through Friday.
5. - Simple pg_dump db, needs manual config
Files 1, 2 and 3 copied from https://wiki.postgresql.org/wiki/Automated_Backup_on_Linux