From f7f8c901f4bc39c3ed0a2bdfe1cbaa1ee6957999 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Mon, 1 Jun 2015 18:04:25 +0800 Subject: Marked as 0.2.9 --- backup.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 backup.sh (limited to 'backup.sh') diff --git a/backup.sh b/backup.sh new file mode 100644 index 00000000..e7afc560 --- /dev/null +++ b/backup.sh @@ -0,0 +1,7 @@ +#!/bin/bash +path=./backups +today=$(date +"%Y%m%d") +timestamp=$(date +"%Y%m%d%H%M%S") +mkdir -p $path/$today +pg_dump hackmd > $path/$today/postgresql_$timestamp +mongodump -d hackmd -o $path/$today/mongodb_$timestamp \ No newline at end of file -- cgit v1.2.3