Created
May 6, 2016 17:12
-
-
Save glarizza/e4d1629a6b8502eda843fb0b27bf5ee0 to your computer and use it in GitHub Desktop.
PE Postgres Backup
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
cron { 'Postgres database backups': | |
command => "sudo -u pe-postgres /opt/puppetlabs/server/apps/postgresql/bin/pg_dumpall -c -f ${postgres_backup_target_dir}/postgres_backup.`/bin/date +%Y%m%d`.sql", | |
hour => $postgres_backup_cron_hour, | |
minute => $postgres_backup_cron_minute, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment