add priority option for sync docker

This commit is contained in:
tickstep 2022-08-13 18:43:29 +08:00
parent 594e635cde
commit d0ad94aa65
3 changed files with 4 additions and 1 deletions

View File

@ -58,6 +58,7 @@ ENV ALIYUNPAN_UPLOAD_BLOCK_SIZE=10240
ENV ALIYUNPAN_LOCAL_DIR=/home/app/data
ENV ALIYUNPAN_PAN_DIR=/sync_drive
ENV ALIYUNPAN_SYNC_MODE=upload
ENV ALIYUNPAN_SYNC_PRIORITY=time
# 运行
ENTRYPOINT ./app.sh

View File

@ -19,6 +19,7 @@ else
"localFolderPath": "$ALIYUNPAN_LOCAL_DIR",
"panFolderPath": "$ALIYUNPAN_PAN_DIR",
"mode": "$ALIYUNPAN_SYNC_MODE",
"priority": "$ALIYUNPAN_SYNC_PRIORITY",
"lastSyncTime": "2022-06-12 19:28:20"
}
]

View File

@ -29,6 +29,7 @@ services:
- ALIYUNPAN_PAN_DIR=/my_sync_dir
# 备份模式upload(备份本地文件到云盘), download(备份云盘文件到本地), sync(双向同步备份,慎用!!!)
- ALIYUNPAN_SYNC_MODE=upload
# 优先级,只对双向同步备份模式有效。选项支持三种: time-时间优先local-本地优先pan-网盘优先
- ALIYUNPAN_SYNC_PRIORITY=time