Created
June 20, 2016 13:21
-
-
Save TimKraemer/fbfe3615bbf1160eab209d1780e2a9d8 to your computer and use it in GitHub Desktop.
daily postgres dump called by crontab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
su postgres -c 'pg_dump db --clean' | gzip --rsyncable --best > /data/export/KM/backup/kmdb/"$(date +"%Y-%m-%d")".gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment