Topic "Existing files only off"

Author Message
kretmatt
[View user's profile]

Joined: 2008-01-23
Posts: 4
Location: germany
Hi!
I try to synchronize a unix box with a windows server.
I will do this by a nightly job.
I got all working but I am not able to sync new files and folders.
I red in the manual that I have to set the option Existing files only off, but this option is not knowen by WinSCP.

Here is my input file so far:
Code:

# 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 password
# open user:password@example.com
# Connect
open root:ispapse2@157.163.24.205
# Force binary mode transfer
option transfer binary
# Delete obsolete files while synchronization
option synchdelete on
[b]#Here is what I am looking for
option Existing files only off[/b]
# Synchronize /mdf with the local directory D:\ulvdev\mdf
synchronize local D:\ulvdev\mdf /mdf
# Synchronize /install with the local directory D:\ulvdev\intsll
synchronize local D:\ulvdev\install /install
# Disconnect
close
# Exit WinSCP
exit

Hope somebody can help me!

Greetings
Matze[/b]
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
The option cannot be configured in script. It is off by default, you have probably enabled it in GUI. Either disable it, or refer to this FAQ.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
The option cannot be configured in script. It is off by default, you have probably enabled it in GUI. Either disable it, or refer to this FAQ.
_________________
Martin Prikryl
kretmatt
[View user's profile]

Joined: 2008-01-23
Posts: 4
Location: germany
Thank you Martin,
Now it works.
I sysnconized one time with the GUI and it seems like the settings are still made if I run my script.
Very Happy

Greets,
Matthias
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