Synchronize fails on $RECYCLE.BIN

Advertisement

Stelio
Guest

Synchronize fails on $RECYCLE.BIN

I'm automating a synchronize process using batch files and Windows Task Scheduler, backing up local files on a computer to a web server. The process is terminating early due to the directory name "$RECYCLE.BIN" which cannot be created on the remote server. Is there a setting to ignore such errors rather than terminating?

I don't mind the recycle bin not being copied across. I'm just looking for the failure to be handled gracefully, and the process to move on to files and directories that can be uploaded. I'd prefer not to have to delete local files (like the recycle bin) that are terminating the process.

The end of the log file containing the relevant messages is reproduced below...

. 2018-01-20 10:16:53.768 Local file 'h:\$RECYCLE.BIN' [2015-07-04T10:44:58.000Z] [0] is new
. 2018-01-20 10:16:53.768 Local file 'h:\~$MOST RECENT TALK.ppt' [2017-07-30T21:59:28.000Z] [165] is new
. 2018-01-20 10:16:53.768 Local file 'h:\MOST RECENT TALK.ppt' [2017-07-30T21:59:38.000Z] [259776000] is new
. 2018-01-20 10:16:53.768 Local file 'h:\Pictures from old dell' [2015-07-08T00:22:26.000Z] [0] is new
. 2018-01-20 10:16:53.768 Local file 'h:\System Volume Information' [2015-07-13T20:42:24.000Z] [0] is new
< 2018-01-20 10:16:53.768 Script: Synchronizing...
. 2018-01-20 10:16:53.768 Synchronizing local directory 'h:\' with remote directory '/', params = 0x2 (NoConfirmation)
. 2018-01-20 10:16:53.815 Copying 5 files/directories to remote directory "/"
. 2018-01-20 10:16:53.815   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask: *.*
. 2018-01-20 10:16:53.815   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2018-01-20 10:16:53.815   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2018-01-20 10:16:53.846 File: 'h:\$RECYCLE.BIN' [2015-07-04T10:44:58.000Z] [0]
< 2018-01-20 10:16:53.846 Script: Local 'h:' => Remote '/'
. 2018-01-20 10:16:53.846 Trying to open directory "/$RECYCLE.BIN/".
> 2018-01-20 10:16:53.846 Type: SSH_FXP_LSTAT, Size: 23, Number: 2984455
< 2018-01-20 10:16:53.846 Type: SSH_FXP_STATUS, Size: 24, Number: 2984196
. 2018-01-20 10:16:53.846 Discarding reserved response
< 2018-01-20 10:16:53.893 Type: SSH_FXP_STATUS, Size: 29, Number: 2984455
< 2018-01-20 10:16:53.893 Status code: 2, Message: 2984455, Server: No such file, Language:  
. 2018-01-20 10:16:53.908 Creating directory "/$RECYCLE.BIN/".
. 2018-01-20 10:16:53.908 Canonifying: "/$RECYCLE.BIN/"
. 2018-01-20 10:16:53.908 Getting real path for '/$RECYCLE.BIN/'
> 2018-01-20 10:16:53.908 Type: SSH_FXP_REALPATH, Size: 23, Number: 2984976
< 2018-01-20 10:16:53.955 Type: SSH_FXP_STATUS, Size: 29, Number: 2984976
< 2018-01-20 10:16:53.955 Status code: 2, Message: 2984976, Server: No such file, Language:  
. 2018-01-20 10:16:53.955 Getting real path for '/'
> 2018-01-20 10:16:53.955 Type: SSH_FXP_REALPATH, Size: 10, Number: 2985232
< 2018-01-20 10:16:54.002 Type: SSH_FXP_NAME, Size: 23, Number: 2985232
. 2018-01-20 10:16:54.002 Real path is '/'
. 2018-01-20 10:16:54.002 Canonified: "/$RECYCLE.BIN"
> 2018-01-20 10:16:54.002 Type: SSH_FXP_MKDIR, Size: 26, Number: 2984718
< 2018-01-20 10:16:54.049 Type: SSH_FXP_STATUS, Size: 24, Number: 2984718
< 2018-01-20 10:16:54.049 Status code: 4, Message: 2984718, Server: Failure, Language:  
. 2018-01-20 10:16:54.049 Asking user:
. 2018-01-20 10:16:54.049 Error creating folder '/$RECYCLE.BIN/'. ("General failure (server should provide error description).
. 2018-01-20 10:16:54.049 Error code: 4
. 2018-01-20 10:16:54.049 Error message from server: Failure
. 2018-01-20 10:16:54.049 
. 2018-01-20 10:16:54.049 Common reasons for the Error code 4 are:
. 2018-01-20 10:16:54.049 - Renaming a file to a name of already existing file.
. 2018-01-20 10:16:54.049 - Creating a directory that already exists.
. 2018-01-20 10:16:54.049 - Moving a remote file to a different filesystem (HDD).
. 2018-01-20 10:16:54.049 - Uploading a file to a full filesystem (HDD).
. 2018-01-20 10:16:54.049 - Exceeding a user disk quota.")
< 2018-01-20 10:16:54.049 Script: Error creating folder '/$RECYCLE.BIN/'.
< 2018-01-20 10:16:54.049 Script: General failure (server should provide error description).
< 2018-01-20 10:16:54.049 Error code: 4
< 2018-01-20 10:16:54.049 Error message from server: Failure
< 2018-01-20 10:16:54.049 Common reasons for the Error code 4 are:
< 2018-01-20 10:16:54.049 - Renaming a file to a name of already existing file.
< 2018-01-20 10:16:54.049 - Creating a directory that already exists.
< 2018-01-20 10:16:54.049 - Moving a remote file to a different filesystem (HDD).
< 2018-01-20 10:16:54.049 - Uploading a file to a full filesystem (HDD).
< 2018-01-20 10:16:54.049 - Exceeding a user disk quota.
. 2018-01-20 10:16:54.096 Script: Failed
. 2018-01-20 10:16:54.096 Script: Exit code: 1
. 2018-01-20 10:16:54.096 Closing connection.
. 2018-01-20 10:16:54.096 Sending special code: 12
. 2018-01-20 10:16:54.096 Sent EOF message

Reply with quote

Advertisement

Stelio
Joined:
Posts:
2
Location:
UK

Update: the fault appears to be with the web server. Individual tests of small file uploads fail, using different methods to WinSCP. That the WinSCP happens to have failed on an unusual filename appears to be a red herring.

I'll post again to close the topic when I have a final answer from the hosting provider.

Reply with quote

Advertisement

You can post new topics in this forum