mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-06-28 15:45:35 +08:00
Update sync_host.sh
修复目录容器内不存在导致备份脚本失败的bug
This commit is contained in:
parent
097af0077e
commit
acdd2e2f4b
@ -15,7 +15,10 @@ export HOST_DIR=/mindoc-sync-host
|
||||
export DOCKER_DIR=/mindoc
|
||||
|
||||
function doSyncCopy() {
|
||||
rclone $SYNC_ACTION --progress --exclude .git* --exclude .git/** "${1}" "${2}"
|
||||
if [ -d "${1}" ]
|
||||
then
|
||||
rclone $SYNC_ACTION --progress --exclude .git* --exclude .git/** "${1}" "${2}"
|
||||
fi
|
||||
}
|
||||
|
||||
function doSync() {
|
||||
|
Loading…
Reference in New Issue
Block a user