How to setup synchronize both script

Advertisement

ostraaten
Joined:
Posts:
1

How to setup synchronize both script

Hi,
As a first time user I am experiencing some difficulties in creating a synchronization script. The script is below. The script works on one computer but not on another computer. My thoughts on this is that there is no sync because my local folder D:\Pictures is newer than the folder on the server. I'm trying to setup a new folder on a new pc to sync so this folder is definitely newer. If I enable deletes it will probably empty the remote folder.

How do I setup a new folder?
Thanks and Regards,
Onno

# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a stored session
open mysession@myhost
# Synchronize
synchronize both "D:\Pictures" /home/myuser/mysite/pictures
# Disconnect
close
# Exit WinSCP
exit

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: How to setup synchronize both script

So for the first time, make fresh full copy of the remote directory. And only after that, use synchronization.

Reply with quote

Advertisement

You can post new topics in this forum