Fix backup script
parent
be93bc5860
commit
5bbb7e1c1f
|
@ -20,7 +20,7 @@ if [ -z "$1" ]
|
||||||
then
|
then
|
||||||
DATE=$(date '+%Y-%m-%d')
|
DATE=$(date '+%Y-%m-%d')
|
||||||
mkdir -p ${DATE}/resource
|
mkdir -p ${DATE}/resource
|
||||||
cp -R ../api/resource ${DATE}
|
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