Need assistance on what "Keepuptodate" command do

Advertisement

trinath89
Joined:
Posts:
8
Location:
NOIDA

Need assistance on what "Keepuptodate" command do

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: Need assistance on what "Keepuptodate" command do

Correct. For 2) you need to add the -delete switch.

Reply with quote

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?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
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

Reply with quote

Advertisement

You can post new topics in this forum