how to set option include & exclude

Advertisement

TK2006
Guest

how to set option include & exclude

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar

tk2006 wrote:

I want all files errors* exluded or access* included.
Your script should do that. If not, please post a log file.

Reply with quote

Guest

martin 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?

Reply with quote

Advertisement

tk2004
Guest

I have resolved, thank you again :D

Another question, following file is used as download file.

# 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

Reply with quote

martin
Site Admin
martin avatar

Sorry, I remember I have replied to your question, but it's gone :-(

The /privatekey setting is a command-line option.

Reply with quote

Advertisement

You can post new topics in this forum