tech info‎ > ‎

1. Sample configuration file

posted Dec 23, 2010 5:36 PM by Norio ISHIZAKI   [ updated Feb 18, 2012 3:09 PM ]
#__________________________________________________________________________
#  Copyright 2012 by Inspire International Inc. Permission to modify and
#  distribute this file is granted, provided that this notice remains intact.
#
#  Sample configuration file <sample.config> used for VMware image files transfer.
#  
#          
#        Please modify this configuration file suit for your needs. Then run as: 
#        > gbftp -f sample.config
#__________________________________________________________________________

get as default.  get = download / put = upload / del = delete remote file(dir.)
cmd=get

ftp|ftps|sftp
protocol=ftp

Remote host name (IP address) on which FTP server runs.
ip=192.168.0.2

Remote Port # on which FTP server listens.
port=21

# Remote dir. in which GBftp accesses.
dir=/vmware
# dir =vmware  <--- OR you can specify without "/" forward slash

Local host name (IP address).
This option lets you use PORT mode for the session with FTP server.
lip=localhost

Local directory to be transferred. Default is the current directory in which GBftp runs.
ldir=.\vmware\backup
# ldir = c:\vmware\backup   <--- Or you can specify the absolute path on Windows.
# ldir = /vmware/backup     <--- Or you can specify the absolute path on Unix.

Name of the file to be transferred. Not required to specify if dealing with dir.
filename=

0|1 Transfer all files under all sub-directories.
sub=1

# 0|1 Synchronize local and remote files/directories.
sync=0

1 for PASV mode
pasv=0

1 for EPSV mode
epsv=0

Login name
username=anonymous

Password in base64
password=YW5vbnltb3Vz

0|1 Skip if same size. By default, we skip if same timestamp.
# timstamp feature is currently supported only for FTP protocol and along with
# with FTP server that supports either MDTM or MLSD command.

size=0

Enable buffered download. (Not recommended unless you are sure)
buff=0

3 as default. Max # of queues to be created parallel.
queue=3

Applicable only for download. 128m as default. Use along with "buff" and "queue".
chunksize=134217728

binary as default. binary=1 | ascii=2 | auto=3
type=1

0|1 If transfer fails, then start same command line with this option
Restart the transfer from where it failed.
resume=0

0|1 Direct I/O only for Linux.
dio=0

# Specify the timeout interval for the session with the server. 60 secs as default.
timeout=60
 
# Paired with -queue option. This indicates the upper limit size of the transfer size.
# If exceed over the limit size of the transfer size. If exceed over the following
# transfer till the exceeded file transfer is over. 128Kb as default.
threshold=134217728

# Command/shell to be executed before transfer.
preevent=C:\PROGRA~2\VMware\VMWARE~1\vmrun -T ws suspend "E:\vmware\gbftp.vmx"

# Command/shell to be executed after transfer.
postevent=C:\PROGRA~2\VMware\VMWARE~1\vmrun -T ws start "E:\vmware\gbftp.vmx"

# N/W encoding such as UTF-8. If set, GBftp coverts from the N/W encoding specified
# through this attribute to the local encoding for incoming and reverse for outgoing.
encoding=

# Enterprise version only.
envfile=

# Display the progress meter on screen.
verbose=0

# Skip to transfer files matched with the values specified in the attribute.
ignore=~*,.*,*.log,*.tmp,*.obj,*.o,*.class,*.lo,*.la,*.al,*.libs,*.so,*.a,*.pyc,*.pyo,*.rej,*.swp