Hello!
I noticed a lot of seemingly random deletes at the end of a long sync job from Google Drive down to my local filesystem. Is this intended? A bug? I’m not clear what’s actually happening.
I can reproduce for a specific folder: rclone copies 2 files, and then immediately deletes 1 while it still exists on the source remote (Google Drive). It does this for different files although consistently the same ones.
I tried rclone dedupe
pointing at the remote and it didn’t list those files.
I’m using the October 1st beta of 1.38: rclone-v1.38-010-ga1d942e5β-linux-amd64
Sync command I used:
rclone sync gd:Timelapse/2016-11/ /backup_usb/Timelapse/2016-11/ --drive-skip-gdocs --ignore-existing --log-level INFO --log-file /root/sync.log --exclude "/secret/**" --tpslimit 1
Output of sync command (ran twice in case of transient issue):
2017/10/01 21:47:06 INFO : Starting HTTP transaction limiter: max 1 transactions/s with burst 1
2017/10/01 21:47:09 INFO : Local file system at /backup_usb/Timelapse/2016-11: Modify window is 1ms
2017/10/01 21:47:12 NOTICE: timelapse_2016-11-10-09-02-48.mkv: Duplicate object found in source - ignoring
2017/10/01 21:47:12 INFO : Local file system at /backup_usb/Timelapse/2016-11: Waiting for checks to finish
2017/10/01 21:47:12 INFO : Local file system at /backup_usb/Timelapse/2016-11: Waiting for transfers to finish
2017/10/01 21:47:18 INFO : timelapse_2016-11-10-10-12-04.mkv: Copied (new)
2017/10/01 21:47:19 INFO : timelapse_2016-11-10-09-37-27.mkv: Copied (new)
2017/10/01 21:47:19 INFO : Waiting for deletions to finish
2017/10/01 21:47:19 INFO : timelapse_2016-11-10-09-37-27.mkv: Deleted
2017/10/01 21:47:19 INFO :
Transferred: 63.282 MBytes (4.685 MBytes/s)
Errors: 0
Checks: 1114
Transferred: 2
Elapsed time: 13.5s
Second run:
2017/10/01 21:47:50 INFO : Starting HTTP transaction limiter: max 1 transactions/s with burst 1
2017/10/01 21:47:53 INFO : Local file system at /backup_usb/Timelapse/2016-11: Modify window is 1ms
2017/10/01 21:47:57 NOTICE: timelapse_2016-11-10-09-02-48.mkv: Duplicate object found in source - ignoring
2017/10/01 21:47:57 INFO : Local file system at /backup_usb/Timelapse/2016-11: Waiting for checks to finish
2017/10/01 21:47:57 INFO : Local file system at /backup_usb/Timelapse/2016-11: Waiting for transfers to finish
2017/10/01 21:48:02 INFO : timelapse_2016-11-10-09-37-27.mkv: Copied (new)
2017/10/01 21:48:04 INFO : timelapse_2016-11-10-10-12-04.mkv: Copied (new)
2017/10/01 21:48:04 INFO : Waiting for deletions to finish
2017/10/01 21:48:04 INFO : timelapse_2016-11-10-10-12-04.mkv: Deleted
2017/10/01 21:48:04 INFO :
Transferred: 63.282 MBytes (4.647 MBytes/s)
Errors: 0
Checks: 1114
Transferred: 2
Elapsed time: 13.6s
Here’s the dedupe output run against the original Google Drive remote where the deleted files aren’t shown as duplicates (shouldn’t there be 2 filenames shown as it says “Found 2 duplicates” ?):
rclone -vv dedupe gd:Timelapse/2016-11/ --dry-run
2017/10/01 21:51:20 DEBUG : Using config file from "/root/.rclone.conf"
2017/10/01 21:51:20 DEBUG : rclone: Version "v1.38-010-ga1d942e5β" starting with parameters ["./rclone" "-vv" "dedupe" "gd:Timelapse/2016-11/" "--dry-run"]
2017/10/01 21:51:21 INFO : Google drive root 'Timelapse/2016-11': Modify window is 1ms
2017/10/01 21:51:21 INFO : Google drive root 'Timelapse/2016-11': Looking for duplicates using interactive mode.
2017/10/01 21:51:26 NOTICE: timelapse_2016-11-10-09-02-48.mkv: Found 2 duplicates - deleting identical copies
2017/10/01 21:51:26 NOTICE: timelapse_2016-11-10-09-02-48.mkv: Deleting 1/2 identical duplicates (md5sum "3cd6ef7026d3de2c24e05a2d0035155c")
2017/10/01 21:51:26 NOTICE: timelapse_2016-11-10-09-02-48.mkv: Not deleting as --dry-run
2017/10/01 21:51:26 NOTICE: timelapse_2016-11-10-09-02-48.mkv: All duplicates removed
2017/10/01 21:51:26 DEBUG : Go routines at exit 4
2017/10/01 21:51:26 DEBUG : rclone: Version "v1.38-010-ga1d942e5β" finishing with parameters ["./rclone" "-vv" "dedupe" "gd:Timelapse/2016-11/" "--dry-run"]