Topic "Synchronize folder - Only new files"

Author Message
[View user's profile]

Joined: 2013-08-21
Posts: 1
Location: Belgium

I'm trying to upload all my new files on my local folder to my remote (FTP) folder. I Want to run this script every night, so I when I get back I want all my new files in my FTP folder (including the old files that where already there). It's working great BUT it always start synchronizing everything again! So the files that are already in the remote location are being transfered again :/.

This is my script:
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /console /script="C:\Documents and Settings\Restore\Desktop\BackupSYNC\SyncScript.txt" /log="C:\Documents and Settings\Restore\Desktop\BackupSYNC\log.log"

synchronize remote -criteria=none D:\Backup\TEST /folder/TEST

I've also tried it without the -criteria option

In my local folder I've got File1, File2 and File3. On my remote folder I've got File1 en File2. At night, I want to synchronize, so WinSCP has to upload File3 to the remote folder. It does this, but File1 and File2 are also uploaded again.

Where is this going wrong?

EDIT: I've tried it with the GUI and it's working fine there, so my guess is that i'm missing something in my command..

Thank you!
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
Please attach a complete session log files both from GUI and script. Ideally on a small set of test files (what you seem to do already).
Maybe you resolve the problem yourself, if you compare the logs.
Martin Prikryl

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License