Fix backup script
parent
7442a7ed22
commit
be93bc5860
|
@ -19,7 +19,8 @@ col=(app_user awarding decoration rank squad user promotion player war campaign)
|
||||||
if [ -z "$1" ]
|
if [ -z "$1" ]
|
||||||
then
|
then
|
||||||
DATE=$(date '+%Y-%m-%d')
|
DATE=$(date '+%Y-%m-%d')
|
||||||
cp -R ../api/resource ${DATE}/
|
mkdir -p ${DATE}/resource
|
||||||
|
cp -R ../api/resource ${DATE}
|
||||||
else
|
else
|
||||||
DATE=${1}
|
DATE=${1}
|
||||||
tar -xzf ${DATE}.tar.gz
|
tar -xzf ${DATE}.tar.gz
|
||||||
|
|
Loading…
Reference in New Issue