I have a script and it will be encountering an error two times which is expected... all having to do with ssh directories that dont want to be filtered out with filemasks. Is there a way to automatically have it skip directories when it encounters an error?
Reply with quote
Its hard to respond without going into a learge spheal, but basically there are .ssh directories on the sftp for all clients who wish to use .ssh to send files...
Synchronize -preservetime -nopermissions -filemask="*.xls;*csv;*.pgp;*.xlsx;*.txt;*gpg|lost+found/" local "Z:\Shared\NEW Egnyte\Staging" "/mntSFTP/sftpRoot/"
The errors are permission errors when the script reaches certain directories. I can get it to filter out the lost+found, but not the other two. The above sample does not include the attempts to filter out the other directories.. I just want to know If I can have it automatically enter S when encountering Error Code 3. Everything was fine and automated until clients wanted to use ssh keys as opposed to passwords.. Ideally I want it to skip the .ssh directories but if not then autoskipping errors would serve the same purpose and make life easier.
Reply with quote
-
martin◆
Site Admin
-
You can use option batch continue
. But that affects for any error and is generally not recommendable.
You didn't explain though what is a problem about excluding the other folders using mask.
Reply with quote
Perhaps it is my syntax, I added one filemask to disclude lost and found that worked and when I added more I was unsuccessful and continued to receive an error. Can you show me the proper syntax to have multiple exclusions. I already have 8 extensions for inclusions that work fine.
Reply with quote
-
martin◆
Site Admin
-
-filemask="*.xls;*csv;*.pgp;*.xlsx;*.txt;*gpg|lost+found/;anotherdirectory/;yetanotherone/"
Reply with quote
Ur awesome that last response actually helped me see where the error was in my script. All works fine now.
Reply with quote