diff options
-rwxr-xr-x | ssync | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,7 +53,7 @@ log "Syncing files since: $PREV_RUN_DATE" log "Fetching files" mkdir -p $RUN_DIR -ssh -i $KEY_FILE $REMOTE "find ${REMOTE_DIR} -newermt ${PREV_RUN_DATE} -exec realpath --relative-to ${REMOTE_DIR} {} \;" >> $CURGET_FILE +ssh -i $KEY_FILE $REMOTE "find ${REMOTE_DIR} -type f -newermt ${PREV_RUN_DATE} -exec realpath --relative-to ${REMOTE_DIR} {} \;" >> $CURGET_FILE comm -23 <(sort -u $CURGET_FILE) <(sort -u $FETCHED_FILE) > $FETCH_FILE COUNT=$(wc -l $FETCH_FILE | cut -d' ' -f1) |