Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: synchronize remote all files allways

All the files that got excluded were excluded rightly, as they do not match the file mask.

So you probably have the filemask wrong.

But I cannot know what files you actually want to transfer.

Maybe you wanted PDS_STRUB*.* instead of PDS_STRUB*.?
untouchable

Re: synchronize remote all files allways

martin wrote:

What you want is not a synchronization. It's a dumb upload.

So use put command:

put -filemask="PDS_STRUB*.|*/" "\\STRUBAD01\AlteDaten\Produktedokumentation\Datenblätter\deutsch\01 Motorenoele\*" "/share/CACHEDEV1_DATA/STRUB-Data/Deutsch/01 Motorenoele/01 Datenblätter/"

https://winscp.net/eng/docs/scriptcommand_put


Hi, tried that but still not working. This is the script i'm using.
option batch on
option confirm off
open sftp://xxxx:xxxxxxx/ -hostkey="ssh-rsa 2048 xxxxxxxxxxxxxxxxxxxx
# Synchronisation der Datenblätter
put -filemask="PDS_STRUB*.|*/" "\\STRUBAD01\AlteDaten\Produktedokumentation\Datenblätter\deutsch\01 Motorenoele\*" "/share/CACHEDEV1_DATA/STRUB-Data/Deutsch/01 Motorenoele/01 Datenblätter/"

Still got excluded from Transfer in log. Could it be a Problem because files allready exists?

thx
Andreas
martin

Re: synchronize remote all files allways

What you want is not a synchronization. It's a dumb upload.

So use put command:

put -filemask="PDS_STRUB*.|*/" "\\STRUBAD01\AlteDaten\Produktedokumentation\Datenblätter\deutsch\01 Motorenoele\*" "/share/CACHEDEV1_DATA/STRUB-Data/Deutsch/01 Motorenoele/01 Datenblätter/"

https://winscp.net/eng/docs/scriptcommand_put
untouchable

synchronize remote all files allways

Hi there
Im searching a script that synchronizes my remote files no matter what timestamp, or anything. All files should be synchronized from local to remote no matter if they allready exist or not (create new files or overwrite existing files).

I've tried with that script:

synchronize remote -criteria=none -filemask="PDS_STRUB*.|*/" "\\STRUBAD01\AlteDaten\Produktedokumentation\Datenblätter\deutsch\01 Motorenoele" "/share/CACHEDEV1_DATA/STRUB-Data/Deutsch/01 Motorenoele/01 Datenblätter"

but in log there is a entry "exluded from synchronization". How do I have to do this?