Topic "unable top upload multiple directories"

Author Message
Franck

Guest


Hi Martin,

I try to upload on nas multiple directories (and his subdir) from multiple sources. It doesn't works.

Other problem is timesamp. Is it possible to preserve timestamp on directories ? This facilitates rotation of backups

Here is my script. Tankx.

open sftp://user:password@192.xxx.xxxx.xxx

# Force binary mode transfer
option transfer binary

#remote directory
cd //other/

#lcd local directory
lcd e:\
option exclude "$RECYCLE.BIN/"
put *
mv * /other/1

lcd C:\Users\pc-user-x\Documents
option exclude "$RECYCLE.BIN/"
put *
mv * /other/2


# Disconnect
close

# Exit WinSCP
exit
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
"It doesn't work" is not a problem description.

Tell us what goes wrong. Session log file would help too.
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