Topic "Need assistance on what "Keepuptodate" command do"

Author Message
trinath89
[View user's profile]

Joined: 2013-01-29
Posts: 8
Location: NOIDA
Hi,

as per my knowledge keepmeuptodate command does the following things,

1) my local and sftp location will be constantly in synchronization
2) if one file got deleted on local the file gets deleted on server
3) if one file is added on local the file gets added on server
4) if one file got appended with extra information on local that file gets appended on sftp

and viceversa.

Please correct me if i am wrong or any of the above mentioned things cannot be done with the specified command

Thanks and Regards
Trinath
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25014
Location: Prague, Czechia
Correct. For 2) you need to add the -delete switch.
trinath89
[View user's profile]

Joined: 2013-01-29
Posts: 8
Location: NOIDA
- delete remote

is this correct?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25014
Location: Prague, Czechia
keepuptodate -delete [ <local directory> [ <remote directory> ] ]
See https://winscp.net/eng/docs/scriptcommand_keepuptodate
trinath89
[View user's profile]

Joined: 2013-01-29
Posts: 8
Location: NOIDA
Excellent job and thanks a lot Smile
MikeDe

Guest


>>3) if one file is added on local the file gets added on server

And what happens when, let's imagine, both dirs are empty and the file is added to remote server?
Will it then be transferred to local folder?
If no - how I can achieve this goal?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25014
Location: Prague, Czechia
MikeDe wrote:
And what happens when, let's imagine, both dirs are empty and the file is added to remote server?
Will it then be transferred to local folder?
If no - how I can achieve this goal?

The "keepuptodate" works local => server only. For opposite direction, you can use "synchronize" only.
_________________
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