Command line options of GET

Advertisement

Mr Juergen Bergmaier
Guest

Command line options of GET

Im trying to download some files, using
winscp-Scripting command GET
For eg: get *.tar p:\target-dir\

so far its 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 fr alle, Ja fr (a)
lle:
------------------------------------------------------

So my question: Is ist posible 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:
29,070
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.
_________________
Martin Prikryl

Reply with quote

ddata
Guest

Re: Command line options of GET

martin wrote:

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.

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
Joined:
Posts:
29,070
Location:
Prague, Czechia

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.
_________________
Martin Prikryl

Reply with quote

tpp
Guest

Re: Command line options of GET

martin wrote:

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.

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:
29,070
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 :-)
_________________
Martin Prikryl

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

martin
Site Admin
martin avatar
Joined:
Posts:
29,070
Location:
Prague, Czechia

Re: NewerOnly

TroyP wrote:

I also can not find this setting in the GUI.
Please see documentation.

Is the feature available when scripting?
No. You can use synchronize command though.

Reply with quote

Advertisement

You can post new topics in this forum