Glacier backup script
authorCharles Connell <charles@connells.org>
Tue, 13 May 2014 18:09:37 +0000 (14:09 -0400)
committerCharles Connell <charles@connells.org>
Tue, 13 May 2014 18:09:37 +0000 (14:09 -0400)
database_backup.sh [new file with mode: 0644]

diff --git a/database_backup.sh b/database_backup.sh
new file mode 100644 (file)
index 0000000..849d035
--- /dev/null
@@ -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
+