How to avoid irrelevant NOTICe in log files

I'm using rclone sync with :sftp: backend in CLI instead of stored config.

rclone v1.68.2
- os/version: Microsoft Windows 11 Pro 23H2 (64 bit)
- os/kernel: 10.0.22631.4751 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.23.3
- go/linking: static
- go/tags: cmount

I sync a remote dir using SFTP and a back-end specified in the CLI rather than in the config. It works fine except for a small annoyance that bloats my log file and confuses the devops: Those NOTICE messages (see log below). I want the -v to list the modified files. Can I avoid them ?

rclone sync .\ --sftp-host workervm2 --sftp-user x --sftp-key-use-agent :sftp:c:\test -v --log-file=c:\logs\rclone.log
2025/01/20 14:59:22 NOTICE: Can't save config "shell_type" for on the fly backend ":sftp"
2025/01/20 14:59:22 NOTICE: Can't save config "md5sum_command" for on the fly backend ":sftp"
2025/01/20 14:59:22 NOTICE: Can't save config "sha1sum_command" for on the fly backend ":sftp"
2025/01/20 14:59:24 INFO  : There was nothing to transfer
2025/01/20 14:59:24 INFO  :
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Checks:               268 / 268, 100%
Elapsed time:         1.8s

TIA for your help.

welcome to the config

try adding --sftp-shell-type to the command line

Thanks! It does indeed get rid of the msg regarding shell_type.
The other 2 remain unfortunately. I see that there are --sftp-md5sum-command and --sftp-sha1sum-command but I have no idea what value to give them. Also, I'd rather let rclone take care of that. If the price to pay is to have those notice messages, so be it...

can set them to none but i would not do that; as rclone cannot verify file transfers using hash.

instead, run the command with -vv for debug output and rclone should display something like

rclone copy -vv d:\files\file.ext :sftp,shell_type=unix,host=redacted.rsync.net,user=redacted,key_file='c:\data\c\combined\rsync\keys\profile2\id_ed25519':zork
...
DEBUG : sftp://redacted@redacted.rsync.net:22/zork: Checking default md5 hash commands
DEBUG : sftp://redacted@redacted.rsync.net:22/zork: Running remote command: md5sum
DEBUG : sftp://redacted@redacted.rsync.net:22/zork: Hash command skipped: failed to run "md5sum": : Process exited with status 1
DEBUG : sftp://redacted@redacted.rsync.net:22/zork: Running remote command: md5 -r
DEBUG : sftp://redacted@redacted.rsync.net:22/zork: Remote command result: d41d8cd98f00b204e9800998ecf8427e
DEBUG : sftp://redacted@redacted.rsync.net:22/zork: Hash command accepted
DEBUG : sftp://redacted@redacted.rsync.net:22/zork: Checking default sha1 hash commands
DEBUG : sftp://redacted@redacted.rsync.net:22/zork: Running remote command: sha1sum
DEBUG : sftp://redacted@redacted.rsync.net:22/zork: Hash command skipped: failed to run "sha1sum": : Process exited with status 1
DEBUG : sftp://redacted@redacted.rsync.net:22/zork: Running remote command: sha1 -r
DEBUG : sftp://redacted@redacted.rsync.net:22/zork: Remote command result: da39a3ee5e6b4b0d3255bfef95601890afd80709
DEBUG : sftp://redacted@redacted.rsync.net:22/zork: Hash command accepted
DEBUG : sftp://redacted@redacted.rsync.net:22/zork: Setting hash command for md5 to "md5 -r" (set sha1sum_command to override)

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