What is the problem you are having with rclone?
I am using rclone to sync a large number of photos to OneDrive. I want to run a nightly job to keep my photos synced to OneDrive.
The issue that I am having is that on subsequent syncs, files are being synced when nothing has changed.
Any idea on what flags I should be setting so that I do not keep reuploading files that have not changed?
What is your rclone version (output from rclone version
)
rclone v1.50.2
- os/arch: linux/amd64
- go version: go1.13.6
I also tried the tests using the most recent version with the same results under Manjaro
rclone v1.53.3
- os/arch: linux/amd64
- go version: go1.13.6
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu 20.04 Desktop
Which cloud storage system are you using? (eg Google Drive)
Microsoft OneDrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
Here are the options I tried. All of them would sync files that hav not been changed.
2020/12/28 14:55:25 DEBUG : rclone: Version "v1.50.2" finishing with parameters ["rclone" "sync" "--checksum" "--progress" "-vvv" "--log-file=/opt/rclone/OneDrive_upload_20201
228144905.log" "--exclude" "/.dtrash/**" "/home/kevin/Pictures" "OneDrive:ryzen/Pictures"]
2020/12/28 15:11:30 DEBUG : rclone: Version "v1.50.2" finishing with parameters ["rclone" "sync" "--checksum" "--progress" "-vvv" "--log-file=/opt/rclone/OneDrive_upload_20201
228145952.log" "--exclude" "/.dtrash/**" "/home/kevin/Pictures" "OneDrive:ryzen/Pictures"]
2020/12/28 15:49:28 DEBUG : rclone: Version "v1.50.2" finishing with parameters ["rclone" "sync" "--ignore-size" "--checksum" "--progress" "-vvv" "--log-file=/opt/rclone/OneDr
ive_upload_20201228154112.log" "--exclude" "/.dtrash/**" "/home/kevin/Pictures" "OneDrive:ryzen/Pictures"]
2020/12/28 15:55:03 DEBUG : rclone: Version "v1.50.2" finishing with parameters ["rclone" "sync" "--ignore-size" "--ignore-checksum" "--progress" "-vvv" "--log-file=/opt/rclon
e/OneDrive_upload_20201228155231.log" "--exclude" "/.dtrash/**" "/home/kevin/Pictures" "OneDrive:ryzen/Pictures"]
2020/12/28 15:58:43 DEBUG : rclone: Version "v1.50.2" finishing with parameters ["rclone" "sync" "--ignore-size" "--ignore-checksum" "--progress" "-vvv" "--log-file=/opt/rclon
e/OneDrive_upload_20201228155742.log" "--exclude" "/.dtrash/**" "/home/kevin/Pictures" "OneDrive:ryzen/Pictures"]
The rclone config contents with secrets removed.
[OneDrive]
type = onedrive
token = {"access_token":"redacted","expiry":"2020-12-24T15:43:16.679410573-07:00"}
drive_id = redacted
drive_type = personal
A log from the command with the -vv
flag
I have only included an extract from a single log. The logs I generated are HUGE, and too big for pastebin.
Here is the summary of each command:
Run 0
Full sync to one drive, with same options as run 2. No Logfile
Run 1
Logfile Location: /opt/rclone/OneDrive_upload_20201228144905.log
Transferred: 172.295M / 172.295 MBytes, 100%, 479.344 kBytes/s, ETA 0s
Errors: 0
Checks: 43249 / 43249, 100%
Transferred: 160 / 160, 100%
Elapsed time: 6m8s
Run 2
Logfile Location: /opt/rclone/OneDrive_upload_20201228145952.log
Transferred: 1.628G / 1.628 GBytes, 100%, 2.432 MBytes/s, ETA 0s
Errors: 0
Checks: 86498 / 86498, 100%
Transferred: 735 / 735, 100%
Elapsed time: 11m25.5s
Run 3
Logfile Location: /opt/rclone/OneDrive_upload_20201228154112.log
Transferred: 1.935G / 1.935 GBytes, 100%, 4.093 MBytes/s, ETA 0s
Errors: 0
Checks: 43249 / 43249, 100%
Transferred: 1206 / 1206, 100%
Elapsed time: 8m4s
Run 4
Logfile Location: /opt/rclone/OneDrive_upload_20201228155231.log
Transferred: 1005.194M / 1005.194 MBytes, 100%, 7.235 MBytes/s, ETA 0s
Errors: 0
Checks: 43249 / 43249, 100%
Transferred: 322 / 322, 100%
Elapsed time: 2m18.9s
Run 5
Logfile Location: /opt/rclone/OneDrive_upload_20201228155742.log
Transferred: 326.577M / 326.577 MBytes, 100%, 6.898 MBytes/s, ETA 0s
Errors: 0
Checks: 43249 / 43249, 100%
Transferred: 84 / 84, 100%
Elapsed time: 47.3s
Part of Log:
Pastebin Log - shortened_20201228144905.log