Skip to content

Instantly share code, notes, and snippets.

View yevhene's full-sized avatar
🍺

Yevhen Shemet yevhene

🍺
View GitHub Profile
#!/bin/bash
# for use with cron, eg:
# 0 3 * * * postgres /var/db/db_backup.sh foo_db
if [[ -z "$1" ]]; then
echo "Usage: $0 <db_name> [pg_dump args]"
exit 1
fi