Topic "how to set option include & exclude"

Author Message
TK2006

Guest


Hello Group,
i want only to synchronize a specific file extension but this does not work. Here is my script:

# 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 wtrends:u2bono@gcfpwbapeu1p-eth0.eurdmz.dmzroot.net
# Change remote directory
# cd /lhome/wtrends/JFPPT/
# option transfer binary
# get access*.gz

# cd /opt/SUNWwbsvr/https-host-eth0.eurdmz.dmzroot.net/logs/
# option transfer binary
# get access*

option include access*
synchronize local e:\Tempa /opt/SUNWwbsvr/https-host-eth0.eurdmz.dmzroot.net/logs

# Disconnect
#close
# Exit WinSCP
#pause
#exit



Any clue?!?

Thanks in advance
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25018
Location: Prague, Czechia
What does not work? How does it behave and what do you expect instead?
_________________
Martin Prikryl
tk2006

Guest


I want all files errors* exluded or access* included.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25018
Location: Prague, Czechia
tk2006 wrote:
I want all files errors* exluded or access* included.

Your script should do that. If not, please post a log file.
_________________
Martin Prikryl
Guest




prikryl wrote:
tk2006 wrote:
I want all files errors* exluded or access* included.

Your script should do that. If not, please post a log file.



From the server, or client?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25018
Location: Prague, Czechia
Client.
_________________
Martin Prikryl
tk2004

Guest


I have resolved, thank you again Very Happy

Another question, following file is used as download file.

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 wtrends:u2bono@host
option include access*
synchronize local G:\raw\UK_JFP_Light\host /opt/SUNWwbsvr/https-host/logs
# Disconnect
close
# Exit WinSCP
exit



Now i have some servers where i can only connect hostbased with genericuser and hostkey. Where do i have to set the /privatekey= setting?
Can you give me a short example?

Many thanks in advance
tko2004

Guest


Any clue...
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25018
Location: Prague, Czechia
Sorry, I remember I have replied to your question, but it's gone Sad

The /privatekey setting is a command-line option.
_________________
Martin Prikryl
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