Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save glarizza/e4d1629a6b8502eda843fb0b27bf5ee0 to your computer and use it in GitHub Desktop.
Save glarizza/e4d1629a6b8502eda843fb0b27bf5ee0 to your computer and use it in GitHub Desktop.
PE Postgres Backup
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