Skip to content

Commit

Permalink
add comment for rsync exclude
Browse files Browse the repository at this point in the history
  • Loading branch information
xiagw committed Jul 17, 2023
1 parent 2439ff7 commit 63aaeba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker.run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if [ -f $file_ver ]; then
echo "Backup db file before upgrade..."
\cp -av $db_file ${db_file}."$(date +%F-%H-%M-%S)".php
echo "Upgrade application files..."
## 此处不同步 db 文件和 upload 文件,自动排除
rsync -a --exclude='Sqlite/' --exclude='Public/Uploads/' $showdoc_html_dir/ $web_dir/
## revert lang if lang=en
if grep -q 'lang:.*en' $web_dir/web/index.html; then
Expand Down

0 comments on commit 63aaeba

Please sign in to comment.