#recycle Not Excluded from synchronize script filemap

Advertisement

busthead
Joined:
Posts:
1

#recycle Not Excluded from synchronize script filemap

A batch file calls:
winscp.com /ini=nul /log=%today%.log /script="WinSCPscript_SanderNAS2PuntaNASsynch.txt">%today%_WinSCPconsole.txt
WinSCPscript_SanderNAS2PuntaNASsynch.txt is:
open sftp://uname:pw@192.168.21.10 -hostkey="keystring"
synchronize remote -delete -filemask="|*recycle" \\192.168.0.10\SanderNAS /SanderNAS
exit
from WinSCPconsole.txt:
Synchronizing...
Local '\\192.168.0.10\SanderNAS' => Remote '/SanderNAS'
\\192.168.0.10\SanderNAS\#recycle |            0 B |    0.0 KB/s | binary |   0%
Error creating folder '/SanderNAS/#recycle'.
Permission denied.
Error code: 3
Error message from server: Permission denied
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort
From the log file:
. 2024-04-14 19:04:09.161 Synchronizing local directory '\\192.168.0.10\SanderNAS\' with remote directory '/SanderNAS/', params = 0x3 (Delete, NoConfirmation)
. 2024-04-14 19:04:09.176 Copying 1 files/directories to remote directory "/SanderNAS/"
. 2024-04-14 19:04:09.176   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask: *.*
. 2024-04-14 19:04:09.176   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: |*recycle; ResumeL: 0
. 2024-04-14 19:04:09.176   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2024-04-14 19:04:09.176 File: '\\192.168.0.10\SanderNAS\#recycle' [2024-03-28T22:54:01.437Z] [0]
< 2024-04-14 19:04:09.176 Script: Local '\\192.168.0.10\SanderNAS' => Remote '/SanderNAS'
. 2024-04-14 19:04:09.176 Listing file "/SanderNAS/#recycle".
> 2024-04-14 19:04:09.176 Type: SSH_FXP_LSTAT, Size: 28, Number: 73672711
< 2024-04-14 19:04:09.208 Type: SSH_FXP_STATUS, Size: 24, Number: 73672452
. 2024-04-14 19:04:09.208 Discarding reserved response
< 2024-04-14 19:04:09.493 Type: SSH_FXP_STATUS, Size: 29, Number: 73672711
< 2024-04-14 19:04:09.493 Status code: 2, Message: 73672711, Server: No such file, Language:  
. 2024-04-14 19:04:09.493 Creating directory "/SanderNAS/#recycle".
. 2024-04-14 19:04:09.493 Canonifying: "/SanderNAS/#recycle"
. 2024-04-14 19:04:09.493 Getting real path for '/SanderNAS/#recycle'
> 2024-04-14 19:04:09.493 Type: SSH_FXP_REALPATH, Size: 28, Number: 73673232
< 2024-04-14 19:04:09.509 Type: SSH_FXP_NAME, Size: 59, Number: 73673232
. 2024-04-14 19:04:09.509 Real path is '/SanderNAS/#recycle'
. 2024-04-14 19:04:09.509 Canonified: "/SanderNAS/#recycle"
> 2024-04-14 19:04:09.509 Type: SSH_FXP_MKDIR, Size: 32, Number: 73672974
< 2024-04-14 19:04:09.540 Type: SSH_FXP_STATUS, Size: 34, Number: 73672974
< 2024-04-14 19:04:09.540 Status code: 3, Message: 73672974, Server: Permission denied, Language:  
. 2024-04-14 19:04:09.540 Asking user:
. 2024-04-14 19:04:09.540 Error creating folder '/SanderNAS/#recycle'. ("Permission denied.
. 2024-04-14 19:04:09.540 Error code: 3
. 2024-04-14 19:04:09.540 Error message from server: Permission denied")
< 2024-04-14 19:04:09.540 Script: Error creating folder '/SanderNAS/#recycle'.
< 2024-04-14 19:04:09.540 Script: Permission denied.
< 2024-04-14 19:04:09.540 Error code: 3
< 2024-04-14 19:04:09.540 Error message from server: Permission denied
. 2024-04-14 19:04:09.546 Answer: Abort
. 2024-04-14 19:04:09.546 Script: Failed
. 2024-04-14 19:04:09.546 Script: Exit code: 1
. 2024-04-14 19:04:09.546 Closing connection.
Shouldn't -filemask="|*recycle" skip \\192.168.0.10\SanderNAS\#recycle?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum