Topic "Scripting synchronize with filesize criteria"

Author Message
gina

Guest


Hi Martin:

How are you?

Here is my question:

When scripting /synchronize, does it check the filesize criteria (as in de GUI)?

I have a problem where a sync to remote from a Win XP to a Redhat Fedora 5 is not synchronizing, alltough even filesizes differ.

Thanks for your support.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Do you actually mean scripting or /synchronize command-line option?
_________________
Martin Prikryl
gina

Guest


Yes, sorry, I mean scripting:

winscp3.com /command "synchronize remote ..."

I'm using a ini file with /ini=<file>. In the ini file I defined CompareByTime=1, but it seems not to work.

Any advice?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
In scripting you cannot synchronize by time. Moreover CompareByTime option is for "compare directories" function.
_________________
Martin Prikryl
gina

Guest


Oops...And can I use "CompareBySize=1" when scripting?
Does it have any effect?

IMO, it is very usefull to force a sync when file size differs.
At least, when synchronizing in one way.

Could you add this feature in a next release?

As said before, I have two machines. When I edit a file in the machine 1 and do a sync from machine 1 to 2, the file is not uplodad, so I have to connect via SSH and remove the file first in order to get it uploaded. This is very annoying.

Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
I can add this in the next release.
_________________
Martin Prikryl
Guest




Great. I hope it will not be difficult.

Thank you very much.
Guest




prikryl wrote:
I can add this in the next release.


Is this working now?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Quote:
Is this working now?

Yes. Please read documentation. If that does not help, come back.
_________________
Martin Prikryl
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