From be93bc586011b6bacf217fa0ec9ed0ac59ce6889 Mon Sep 17 00:00:00 2001 From: Florian Hartwich Date: Sun, 27 Aug 2017 15:50:28 +0200 Subject: [PATCH] Fix backup script --- backup/backup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup/backup.sh b/backup/backup.sh index a963300..5a4f820 100755 --- a/backup/backup.sh +++ b/backup/backup.sh @@ -19,7 +19,8 @@ col=(app_user awarding decoration rank squad user promotion player war campaign) if [ -z "$1" ] then DATE=$(date '+%Y-%m-%d') - cp -R ../api/resource ${DATE}/ + mkdir -p ${DATE}/resource + cp -R ../api/resource ${DATE} else DATE=${1} tar -xzf ${DATE}.tar.gz