Files upload will be auto compress,how do I sync a file to remote?

I used sync command sync dir by FTP, the remote server will auto compress my files, so rclone always checksum failed, re-upload again and again! Can anybody help me?

Can you post the command you are running and some log with -vv of the problem and I'll see if I can help :smiley:

root@mydomain:~# rclone sync /testupload/test.mp4 /mnt/verystream/ -vv -n 
2019/06/23 06:13:25 DEBUG : rclone: Version "v1.48.0" starting with parameters ["rclone" "sync" "/testupload/test.mp4" "/mnt/verystream/" "-vv" "-n"]
2019/06/23 06:13:25 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2019/06/23 06:13:26 DEBUG : 44: Excluded
2019/06/23 06:13:26 DEBUG : _somuchsubtitles: Excluded
2019/06/23 06:13:26 DEBUG : _verythumb: Excluded
2019/06/23 06:13:26 DEBUG : ignore-size: Excluded
2019/06/23 06:13:26 DEBUG : small.mp4: Excluded
2019/06/23 06:13:26 DEBUG : test.mp4: Sizes differ (src 1613649327 vs dst 830843938)
2019/06/23 06:13:26 NOTICE: test.mp4: Not copying as --dry-run
2019/06/23 06:13:26 INFO  : Local file system at /mnt/verystream: Waiting for checks to finish
2019/06/23 06:13:26 INFO  : Local file system at /mnt/verystream: Waiting for transfers to finish
2019/06/23 06:13:26 INFO  : Waiting for deletions to finish
2019/06/23 06:13:26 INFO  : 
Transferred:   	         0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 0
Checks:                 1 / 1, 100%
Transferred:            1 / 1, 100%
Elapsed time:       700ms

2019/06/23 06:13:26 DEBUG : 3 go routines active
2019/06/23 06:13:26 DEBUG : rclone: Version "v1.48.0" finishing with parameters ["rclone" "sync" "/testupload/test.mp4" "/mnt/verystream/" "-vv" "-n"]

When I added --ignore-size --ignore-checksum,the log is

root@mydomain:~# rclone sync /testupload/test.mp4 /mnt/verystream/ -n -vv --ignore-size --ignore-checksum
2019/06/23 08:21:10 DEBUG : rclone: Version "v1.48.0" starting with parameters ["rclone" "sync" "/testupload/test.mp4" "/mnt/verystream/" "-n" "-vv" "--ignore-size" "--ignore-checksum"]
2019/06/23 08:21:10 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2019/06/23 08:21:10 NOTICE: test.mp4: Not copying as --dry-run
2019/06/23 08:21:10 INFO  : Local file system at /mnt/verystream: Waiting for checks to finish
2019/06/23 08:21:10 INFO  : Local file system at /mnt/verystream: Waiting for transfers to finish
2019/06/23 08:21:10 INFO  : Waiting for deletions to finish
2019/06/23 08:21:10 INFO  : 
Transferred:   	         0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 0
Checks:                 0 / 0, -
Transferred:            1 / 1, 100%
Elapsed time:          0s

2019/06/23 08:21:10 DEBUG : 4 go routines active
2019/06/23 08:21:10 DEBUG : rclone: Version "v1.48.0" finishing with parameters ["rclone" "sync" "/testupload/test.mp4" "/mnt/verystream/" "-n" "-vv" "--ignore-size" "--ignore-checksum"]

When checking that the name of the remote file is the same as that of the local file, they skip copying. Is that possible?

Hmm, try --size-only --ignore-size that sounds weird, but I think that will do it!

I add --size-only --ignore-size , but it return error: Can't use --size-only and --ignore-size together.

Try this with --size-only --ignore-size

https://beta.rclone.org/branch/v1.48.0-011-g10a7a728-fix-ignore-size-beta/ (uploaded in 15-30 mins)

Thanks for your help!:grinning:
I find it's not rclone problem, this is the FTP server problem,it seems to occupy file when video uploaded successfully. You can find more details here.
By the way, I want to know what did rclone do(or check something) after the upload was successful?

Yes, rclone will check the size, checksum of the file once it is uploaded. In the case of FTP that is only the size.

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