From 5c3e2d7d5c816fe12c4cdd58284994b225e235b6 Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Tue, 13 May 2014 14:09:37 -0400 Subject: [PATCH] Glacier backup script --- database_backup.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 database_backup.sh diff --git a/database_backup.sh b/database_backup.sh new file mode 100644 index 0000000..849d035 --- /dev/null +++ b/database_backup.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +pg_dump -F t karmanotes > karmanotes_db_prod-$(date +"%Y-%m-%d").tar +glacier-cmd --region us-east-1 upload karmanotes_db_prod-$(date +"%Y-%m-%d").tar + -- 2.25.1