Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: unable top upload multiple directories

"It doesn't work" is not a problem description.

Tell us what goes wrong. Session log file would help too.
Franck

unable top upload multiple directories

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