Topic "Help with Syncronizing"

Author Message
jpjohnson

Guest


We would like to


1. Sync ANY file or folder new or modified RECURSIVELY.
2. From Local to SFTP
3. Excluding thumbs.db (yes we can just have windows not create them but I would still like to know how to exclude a file)

Currently it is not syncing modified folder/files but rather everything
Currently it seems to only sync sub folders and contents through 8 directories fromm local.

We would like it to recurse through all sub directories. Yes these paths can be 10 to 20 directories deep.

Below is the code in the txt file winscp is following:

Code:
option batch continue
option confirm off
option synchdelete on
open WGDJobInfoSync
lcd \\servername\Company\Jobs
synchronize -filemask="*.db" remote "\\servername\Company\Jobs" "/TESTING/Jobs_TEMP"
exit
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25748
Location: Prague, Czechia
You have to add the *.db to exclude, not include mask:
synchronize -filemask="|*.db" remote "\\servername\Company\Jobs" "/TESTING/Jobs_TEMP"
See https://winscp.net/eng/docs/file_mask
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License