Added debug logging for the important stuff

This commit is contained in:
2026-02-28 01:52:28 -06:00
parent 470a716bbb
commit f344057c67

View File

@@ -48,6 +48,7 @@ echo "$event_data" | while IFS='=' read -r k v; do
log "WARN" "${sp}.lock exists, please check which version you have synced"
else
mkdir -p "$bp"
log "DEBUG" "running command: rclone copyto $remote_f $sp --backup-dir $bp"
rclone copyto "$remote_f" "$sp" --backup-dir "$bp" && log "INFO" "Save synced successfully"
fi
log "INFO" "Start sync for $(basename "$sp") done"
@@ -55,6 +56,7 @@ echo "$event_data" | while IFS='=' read -r k v; do
log "INFO" "Sync END: $(basename "$sp")"
#log "DEBUG" "rclone update $sp $REMOTE_BASE/$sid/"
find "$sp" -size -256 -delete
log "DEBUG" "running command: rclone update $sp $REMOTE_BASE/$sid/"
if [ ! "$(rclone update "$sp" "$REMOTE_BASE/$sid/")" ]; then
log "INFO" "Final Sync Done."
else