Existing files only off

Advertisement

kretmatt
Joined:
Posts:
4
Location:
germany

Existing files only off

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:
# 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]

Reply with quote

Advertisement

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

Re: Existing files only off

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

Reply with quote

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

Re: Existing files only off

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

Reply with quote

kretmatt
Joined:
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.
:D

Greets,
Matthias

Reply with quote

Advertisement

You can post new topics in this forum