What is the problem you are having with rclone?
Calling rclone with:
"C:\msys64\bin\rclone.exe" `
--log-file="C:\Users\<username>\AppData\Local\Temp\2023-05-02_19-00-01_rclone.log" `
--log-level=INFO `
--delete-after `
--ignore-errors `
sync `
":http,url='https://ftp.halifax.rwth-aachen.de':/cygwin/" `
"//files-sz/depot/Software/cygwin/3/mirror/"
(Backticks are line continuation signs. It is all on one line).
rclone responds with:
Failed to open log file: open "C:\Users\<username>\AppData\Local\Temp\2023-05-02_19-00-01_rclone.log": Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch.
ps> dir "C:\Users\<username>\AppData\Local\Temp\2023-05-02_19-00-01_rclone.log"
Verzeichnis: C:\Users\<username>\AppData\Local\Temp
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 02.05.2023 19:00 0 2023-05-02_19-00-01_rclone.log
I'd assume this is something not correct. Since the very same filename works if handled to a simple dir command. Even if called from the same script.
Run the command 'rclone version' and share the full output of the command.
PS C:\Users\<username>\Documents> rclone version
rclone v1.62.2
- os/version: Microsoft Windows 10 Enterprise LTSC 2019 1809 (64 bit)
- os/kernel: 10.0.17763.4131 Build 17763.4131.4131 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.20.2
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Storage source: http
Storage destination: UNC-Path, locally mounted
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
"C:\msys64\bin\rclone.exe" `
--log-file="C:\Users\<username>\AppData\Local\Temp\2023-05-02_19-00-01_rclone.log" `
--log-level=INFO `
--delete-after `
--ignore-errors `
sync `
":http,url='https://ftp.halifax.rwth-aachen.de':/cygwin/" `
"//files-sz/depot/Software/cygwin/3/mirror/"
(Backticks are line continuation signs. It is all on one line).
The rclone config contents with secrets removed.
config not used. It is empty.
A log from the command with the -vv
flag
Since rclone does exaust an error with the log file name it does not write a log at all.
The same command does work given on commandline. It does not work from any script I've tried (at least windows -- Unix/Linux it's not a problem at all).