Topic "How to setup synchronize both script"

Author Message
[View user's profile]

Joined: 2008-01-04
Posts: 1
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,

# 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
# Exit WinSCP
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
So for the first time, make fresh full copy of the remote directory. And only after that, use synchronization.
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License