Skip to content

sk3pp3r/Backup-a-Dockerized-PostgreSQL-Database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Backup-a-Dockerized-PostgreSQL-Database

Backup a Dockerized PostgreSQL Database Script

Add this script tou your crontab, add permissions (if needed)
You need to replace each {ITEM} with relevant information
This script tested on RHEL 8 with Docker version 19.03.13

to add a daily backup via cron job do the following steps:

sudo crontab -e
@daily /bin/bash {script location}backup_postgres.sh >/dev/null 2>&1

Buy Me A Coffee

Releases

No releases published

Packages

No packages published

Languages