What is the problem you are having with rclone?
If rclone is called via a batch script, it behaves differently from a direct call via command line. The problem does occur if the script is not located in a main folder, e.g. D:.
The whole thing can also be reproduced differently:
rclone is in C:\rclone. Change with cd to "D:\Gemeinsames".
Call rclone via
D:\Gemeinsames > "C:\rclone\rclone.exe" sync -vv -i D: secret:priv --exclude "/System Volume Information/**" --exclude "/$RECYCLE.BIN/**" --exclude "Thumbs.db"
Log shows
2022/12/29 13:01:33 DEBUG : fs cache: renaming cache item "D:" to be canonical "//?/D:/Gemeinsames"
Rclone then wants to incorrectly delete files.
Everything is fine, if I run it like this
D:\Gemeinsames > "C:\rclone\rclone.exe" sync -vv -i "//?/D:/" secret:priv --exclude "/System Volume Information/**" --exclude "/$RECYCLE.BIN/**" --exclude "Thumbs.db"
Run the command 'rclone version' and share the full output of the command.
rclone v1.61.1
- os/version: Microsoft Windows 10 Pro 22H2 (64 bit)
- os/kernel: 10.0.19045.2364 (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)
Hetzner Storage Box
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
See above.
The rclone config contents with secrets removed.
[cloud]
type = sftp
host = ****.your-storagebox.de
user = ****
port = 23
pass = ****
shell_type = unix
md5sum_command = md5sum
sha1sum_command = sha1sum
[secret]
type = crypt
remote = ****
password = ****
password2 = ****
A log from the command with the -vv
flag
See above