Z-Cron
 

Command-Line Parameters for Z-FTPcopyII

Our FTP Backup client Z-FTPcopyII is not only a graphical program, but also a command-line utility, i.e. it can be controlled with command-line parameters.

Command-line parameters make it possible to give the program a command at startup which it then executes. This is especially useful for FTP/SFTP/FTPS transfers in batch processing and for use in scripts and other programs. Generally, the program is automatically started with the correct parameters by Z-DBackup, but it is also possible to run it manually. The parameters must be specified after the program name, each separated by spaces. If any file names contain spaces, they must be quoted with double quotes (")!

FTP Command-Line Parameters

These commands must be specified in a correct program call:

zftpcopy.exe Command SOURCE TARGET Server Username Password

The commands are: put, puts, get, gets and view.


Explanation:

Parameter

Function

 

put

Upload a file

puts

Upload a directory

get

Download a file

gets

Download a directory

view

Show FTP directory in the remote file browser.

   
Server

Enter the name or IP address of the FTP server.

Username

Enter the username for accessing the FTP server.

Password

Enter the password for the FTP account.



The six compulsatory parameters can be complemented with these optional parameters:

Parameter

Function

-p


Activates FTP Passive Mode. The passive mode controls who establishes the data connection for file transfers after the initialisation connection is complete. If the passive mode is disabled, the FTP server establishes the connection to the client to transfer files. Some firewalls or proxy servers do not allow this kind of incoming connections. If the passive mode is enabled, Z-FTPcopyII creates an additional connection for file transfers.

-port

Specify the port, e.g.: -port 990.

-ftps

FTPS Protocol. The unsecure variant uses SSL encyption only for the username and password.

-ftpsdaten

FTPS Protocol. The secure variant also encrypts all data traffic. Note that it is somewhat slower due to the additional encryption effort.

-ftpsimplicit

Basically the same as the FTPS variants. You should use this option if you use an older FTP server with an SSL wrapper.

-sftp

SSH File Transfer Protocol (SFTP).

-archivbit

Only files with the archive attribute set are transferred. The archive flag is deactivated by Z-FTPcopyII, so that next time, only new and changed files are transferred.

-asc

ASCII Mode Transfer.

-proxyhost

Proxy Name/IP

-proxyport

Proxy Port

-proxyuser

Proxy Username

-proxypass

Proxy Passwort

 
-proxytype
1 SOCKS4 Proxy Firewall.
2 SOCKS5 Proxy Firewall.
3 WEB Proxy (with CONNECT command).
4 Proxy Relay.
5 SOCKS4a Proxy Firewall.
100 FTP Transparent Proxy Server (with SITE command).
101 FTP Transparent Proxy Server (with OPEN command).
102 FTP Transparent Proxy Server (with USER command).

e.g. -proxytype 4

 
-noproxy

By default, Z-FTPcopyII uses the same Internet options as Internex Explorer. This option overrides the default settings.

-maske

For the parameters puts and gets you can also specify a filename mask (e.g. -maske *.zip) to restrict the file selection.


Return Value

A return value of 0 tells the calling program that the transfer was successful. A return value larger than 0 signals an error.


* Download the Shareware Version of Z-FTPcopyII

Z-FTPcopyII is written by Andreas Baumann © 2002 - 2017.
All mentioned trademarks and company names are subject to the Copyright of their respective owners.
Contact © 2016 Andreas Baumann – Realisation by IMU «