Skip to content

Instantly share code, notes, and snippets.

View danitfk's full-sized avatar

danitfk danitfk

View GitHub Profile
@danitfk
danitfk / pgsql_backup.sh
Last active October 20, 2018 17:30 — forked from sirbrillig/pgsql_backup.sh
Postgresql daily backup script.
#!/bin/bash
#
# Backup a Postgresql database into a daily file.
#
BACKUP_DIR="$1"
DAYS_TO_KEEP=14
FILE_SUFFIX=_pg_backup_jira.sql
DATABASE=jira
USER=postgres