Instantly share code, notes, and snippets.

What would you like to do?
Backup OpenShift PostgreSQL Database
# Backs up the OpenShift PostgreSQL database for this application
# by Skye Book <>
NOW="$(date +"%Y-%m-%d")"

This comment has been minimized.

harit-sunrun commented May 11, 2013

I liked this way of taking backup and not taking the backup of entire app.
Thank you very much for quick 3 lines, really helpful


This comment has been minimized.

shaiton commented Oct 23, 2014

Hi, I forked thinking we can do pull request but just found we can't actually.
I just added a line to clean old backup files (mtime +30 = 30 days old)


This comment has been minimized.

lucas03 commented Aug 4, 2015

does not work if database is on separate gear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment