"On some SFTP servers (e.g. Synology) the paths are different for SSH and SFTP so the hashes can't be calculated properly"

What is the problem you are having with rclone?

https://rclone.org/sftp/#limitations
"On some SFTP servers (e.g. Synology) the paths are different for SSH and SFTP so the hashes can't be calculated properly. For them using disable_hashcheck is a good idea."

however, i find that hashes can be calculated properly on a synbox(synology).
does the documentation need to be updated or am i misreading the docs?

Run the command 'rclone version' and share the full output of the command.

rclone version
rclone v1.61.1
- os/version: Microsoft Windows 11 Pro 21H2 (64 bit)
- os/kernel: 10.0.22000.1574 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.19.4
- go/linking: static
- go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

sftp running on synology

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone copy file.ext bnas_sftp:homes/user99/zork -vv --sftp-path-override=/volume1/homes/user99/zork

The rclone config contents with secrets removed.

[bnas_sftp]
type = sftp
host = 100.115.37.34
user = user99
key_file = C:\data\c\combined\main\bnas\keys\bnas.nop.priv
shell_type = unix
md5sum_command = md5sum
sha1sum_command = sha1sum

A log from the command with the -vv flag

rclone copy file.ext bnas_sftp:homes/user99/zork -vv --sftp-path-override=/volume1/homes/user99/zork
DEBUG : rclone: Version "v1.60.0" starting with parameters ["rclone" "copy" "file.ext" "bnas_sftp:homes/user99/zork" "-vv" "--sftp-path-override=/volume1/homes/user99/zork"]
DEBUG : Creating backend with remote "file.ext"
DEBUG : Using config file from "C:\\data\\rclone\\rclone.conf"
DEBUG : fs cache: adding new entry for parent of "file.ext", "//?/C:/data/rclone"
DEBUG : Creating backend with remote "bnas_sftp:homes/user99/zork"
DEBUG : bnas_sftp: detected overridden config - adding "{A-gUg}" suffix to name
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: New connection 100.109.123.23:59458->100.115.37.34:22 to "SSH-2.0-OpenSSH_8.2"
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: Shell type "unix" from config
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: Relative path resolved to "/homes/user99/zork"
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: Using root directory "/homes/user99/zork"
DEBUG : fs cache: renaming cache item "bnas_sftp:homes/user99/zork" to be canonical "bnas_sftp{A-gUg}:homes/user99/zork"
DEBUG : file.ext: Need to transfer - File not found at Destination
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: Shell path redirected to "/volume1/homes/user99/zork/file.ext" with option path_override
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: Running remote command: md5sum /volume1/homes/user99/zork/file.ext
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: Remote command result: c039965eb7fcc80be96c2a578bf8bace  /volume1/homes/user99/zork/file.ext
DEBUG : file.ext: Parsed hash: c039965eb7fcc80be96c2a578bf8bace
DEBUG : file.ext: md5 = c039965eb7fcc80be96c2a578bf8bace OK
INFO  : file.ext: Copied (new)
INFO  :
Transferred:       16.940 KiB / 16.940 KiB, 100%, 0 B/s, ETA -
Transferred:            1 / 1, 100%
Elapsed time:         0.5s
rclone check file.ext bnas_sftp:homes/user99/zork -vv --sftp-path-override=/volume1/homes/user99/zork
DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "check" "file.ext" "bnas_sftp:homes/user99/zork" "-vv" "--sftp-path-override=/volume1/homes/user99/zork"]
DEBUG : Creating backend with remote "file.ext"
DEBUG : Using config file from "C:\\data\\rclone\\rclone.conf"
DEBUG : fs cache: adding new entry for parent of "file.ext", "//?/C:/data/rclone"
DEBUG : Creating backend with remote "bnas_sftp:homes/user99/zork"
DEBUG : bnas_sftp: detected overridden config - adding "{A-gUg}" suffix to name
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: New connection 100.109.123.23:60282->100.115.37.34:22 to "SSH-2.0-OpenSSH_8.2"
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: Shell type "unix" from config
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: Relative path resolved to "/homes/user99/zork"
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: Using root directory "/homes/user99/zork"
DEBUG : fs cache: renaming cache item "bnas_sftp:homes/user99/zork" to be canonical "bnas_sftp{A-gUg}:homes/user99/zork"
INFO  : Using md5 for hash comparisons
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: Waiting for checks to finish
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: Shell path redirected to "/volume1/homes/user99/zork/file.ext" with option path_override
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: Running remote command: md5sum /volume1/homes/user99/zork/file.ext
DEBUG : sftp://user99@100.115.37.34:22/homes/user99/zork: Remote command result: c039965eb7fcc80be96c2a578bf8bace  /volume1/homes/user99/zork/file.ext
DEBUG : file.ext: Parsed hash: c039965eb7fcc80be96c2a578bf8bace
DEBUG : file.ext: md5 = c039965eb7fcc80be96c2a578bf8bace OK
DEBUG : file.ext: OK
NOTICE: sftp://user99@100.115.37.34:22/homes/user99/zork: 0 differences found
NOTICE: sftp://user99@100.115.37.34:22/homes/user99/zork: 1 matching files
INFO  :
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Checks:                 1 / 1, 100%
Elapsed time:         0.4s

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