压缩文件备份
- 作者: 北斗地图_
- 来源: 51数据库
- 2022-09-21
#!/bin/sh
source=("../server" "../client")
target_dir="./"
date=$(date +%Y%m%d)
target="$target_dir$date.zip"
zip -qr $target ${source[0]} ${source[1]}
if [ $? = 0 ]
then
echo "Back up SUCCESSFUL!"
else
echo "Back up FAILED!"
fi
exit 0
推荐阅读
