Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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.
ostraaten

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