-
Notifications
You must be signed in to change notification settings - Fork 0
Home
li.ml edited this page May 30, 2016
·
2 revisions
++
#!/bin/bash # ========================================================= # 请输入,你想让备份数据放置到那个独立的目录去 basedir=/home/client/bak srcdir=/home/client/src/webapp
zipfile=$basedir/app.db.$(date +%Y-%m-%d).zip
[ ! -d "$basedir" ] && mkdir $basedir
cd $srcdir zip -r $zipfile ./* ++