Command line options of GET

Advertisement

Mr Juergen Bergmaier
Guest

Command line options of GET

I'm trying to download some files, using
winscp-Scripting command get
For eg:
get *.tar p:\target-dir\
so far it's working ...
Initialisiere...
Suche entfernten Rechner...
Verbinde mit entferntem Rechner...
Melde an...
Using username "root".
Angemeldet.
Starte die Sitzung...
Lese entferntes Verzeichnis...
Sitzung wurde gestartet.
Aktive Sitzung: [1] esx01_sicherung_vmdk
prog_vmware_vmx.tar       |          0 kB |    0,0 kB/s | binary |   0%
Die lokale Datei 'prog_vmware_vmx.tar' existiert bereits. Überschreiben?
Neu:            266240 bytes, 16.02.2006 12:04:45
Vorhanden:      266240 bytes, 16.02.2006 12:04:45
(J)a, (N)ein, A(b)brechen, An(h)ängen, Nur n(e)uere, Ne(i)n für alle, Ja für (a)lle:
So my question: Is ist possible to add a option to the
get command for downloading only newer files to
to the target-Dir ? Or what would be a useful way to
do this in a batch-file?

Thanks for soon response!
Juergen

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,253
Location:
Prague, Czechia

Re: Command line options of GET

You can do that only by setting the option as default in configuration. You can do that by providing custom INI file to the WinSCP process that runs your script.

Reply with quote

ddata
Guest

Re: Command line options of GET

Sound great, could you explain what should be added to the .ini file.

Thanks a lot!

Thomas

Reply with quote

martin
Site Admin
martin avatar

Re: Command line options of GET

ddata wrote:

Sound great, could you explain what should be added to the .ini file.
Please, setup what you need in GUI and see what is set in the INI file yourself.

Reply with quote

tpp
Guest

Re: Command line options of GET

I have set up my downloads in a GUI. I do not see any variables in my ini file that would indicate "copy only newer" files. What names should I be looking for?

It would be nice to have a feature in the GUI to export an ini file for 1 machine. I have over 20 servers that I connect to regularly -- all with different settings. I would like to quickly generate 20 different ini files for automation.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,253
Location:
Prague, Czechia

Re: Command line options of GET

tpp wrote:

Please, setup what you need in GUI and see what is set in the INI file yourself.
Unfortunatelly, this option is not persistent, so it is not configurable via INI. I have noticed it only now, I'll fix it with the next release.

It would be nice to have a feature in the GUI to export an ini file for 1 machine. I have over 20 servers that I connect to regularly -- all with different settings. I would like to quickly generate 20 different ini files for automation.
That's quite specific request :-)

Reply with quote

TroyP
Guest

NewerOnly

I see a NewerOnly=0 steeing in my INI file but I do not see what the setting has to be to get only newer files. I have tried 1 (since the default is zero). I also can not find this setting in the GUI. Is the feature available when scripting?

Reply with quote

Advertisement

You can post new topics in this forum