"Updated modification time in destination" every time

Hello,

I'm using rclone to do backups to an external hard drive.
There is no associated config.
The command is.

source="$HOME/somewhere"
dest_current=/Volumes/.../current"
dest_backup=/Volumes/.../${today}"
rclone sync ${source} ${dest_current} \
  --backup-dir=${dest_backup} -P -v

The issue is that the timestamps seems to differ slightly for some files between source and destination. It then tries to update them, but doesn't seem to succeed since when I re-run the command, same happens over and over again.
Every time I get a bunch of Updated modification time in destination.
Any idea how to fix/clean this ?

Thanks !


It's pretty long but the logs looks like this

2020/02/28 09:06:12 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rclone" "sync" "$HOME/somewhere/" "/Volumes/.../current" "--backup-dir=/Volumes/.../20200228_0906" "-P" "-vv"]
2020/02/28 09:06:12 DEBUG : Using RCLONE_CONFIG_PASS password.
2020/02/28 09:06:12 DEBUG : Using config file from "/.../rclone.conf"
2020-02-28 09:06:16 DEBUG : .DS_Store: Modification times differ by -381.280198ms: 2020-02-22 09:02:30.381280198 -0800 PST, 2020-02-22 09:02:30 -0800 PST
2020-02-28 09:06:16 DEBUG : file1.txt: Modification times differ by -43ms: 2020-01-13 09:02:32.043 -0800 PST, 2020-01-13 09:02:32 -0800 PST
2020-02-28 09:06:17 DEBUG : .DS_Store: MD5 = [SOME MD5] OK
2020-02-28 09:06:17 INFO : .DS_Store: Updated modification time in destination
2020-02-28 09:06:17 DEBUG : .DS_Store: Unchanged skipping
2020-02-28 09:06:17 DEBUG : file1.txt: MD5 = [ANOTHER MD5] OK
2020-02-28 09:06:17 INFO : file1.txt: Updated modification time in destination
2020-02-28 09:06:17 DEBUG : file1.txt: Unchanged skipping
[... a lot more of the same ...]
2020-02-28 09:06:23 INFO : Waiting for deletions to finish
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Checks: 1975 / 1975, 100%
Elapsed time: 4.6s
2020/02/28 09:06:23 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Checks: 1975 / 1975, 100%
Elapsed time: 4.6s

2020/02/28 09:06:23 DEBUG : 4 go routines active
2020/02/28 09:06:23 DEBUG : rclone: Version "v1.51.0" finishing with parameters ["rclone" "sync" "$HOME/somewhere" "/Volumes/.../current" "--backup-dir=/Volumes/.../20200228_0906" "-P" "-vv"]

I would guess your external drive is FAT (or similar) which only has a timestamp resolution of 1s.

So if you add --modify-window 2s to your sync, that should fix it.

1 Like

Great! That's working.
Thanks a lot. Great software btw :slight_smile:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.