First I’d like to say thanks for developing rclone because I think it’s a great tool once you’ve figured out the right parameters
Actually I want to achieve a reliable backup of my Dropbox to an SFTP server. I’m running two cron jobs. One a week I run a copy job:
rclone copy dropbox:my-files sftpserver:my-files -v --log-file=copy-$DATE.log
The other days I run a sync job:
rclone sync dropbox:my-files sftpserver:my-files --backup-dir sftpserver:backup-$DATE -v --log-file=sync-$DATE.log
In general rclone works as expected but I’m concerned about the reliability. The log of the copy job has several messages like this: error reading source directory: too_many_requests/
So it seems 32 files could not be transferred due to errors above. I would expect the sync job running the other days would at least copy the 32 missing files. But the summary says:
Transferred: 0 Bytes (0 Bytes/s)
Errors: 0
Checks: 356723
Transferred: 0
Elapsed time: 1h22m11.2s
How can I achieve a reliable copy/sync job so I can be sure all files of my Dropbox are safely backed up? Are there any further rclone parameters needed?
Are these known errors when working with Dropbox? Do you think increasing --retries and --low-level-retries could help here?
I don't have temporary files in my Dropbox folder. But to be sure I will retry this behavior. I ran a copy job last night which resulted in 43 errors. Today I didn't put/delete any files in my Dropbox. This night a sync job will run so rclone must pick them up. I will post the result tomorrow.
I'm not sure what causes the first error - sounds like either a networking problem or a dropbox problem.
The second error is caused by dropbox rate limiting. rclone should backoff and retry at that point. However rclone will only try --low-level-retries times before it gives up which it sounds like it is.
It might do...
One thing that might help is to set --tpslimit to try to avoid the dropbox rate limiting. I'd try --tpslimit 5 to start with and see what happens.
The SFTP server and dropbox dont have a common hash so the hashes can't be checked. rclone will check file existence and size though which is a reasonable check.
The rclone backup job seems to run smoothly now since the last weeks. The parameters --tpslimit 10 and --low-level-retries 10 seem to be perfect for dropbox.
The subsequent check reports:
0 differences found
138911 hashes could not be checked
I understand the hashes were different between SFTP server and dropbox. So can I be sure the transfer was successful due to 0 differences found message?
You can be sure that all the files are present and they have their correct sizes. Unfortunately because the two don't have a compatible hash you can't know anything about the contents of the files.