# login name for ftp session.
# ftp-user = anonymous

# password must be e-mail address.
# ftp-pass = ftp-admin@your.domain.name

# if no listing method required, http proxy can be used.
# http-proxy = proxy.your.net.com

# do you like passive mode for data transfer?
# ftp-passive = yes

# to force to get mtime (by MDTM ftp command) uncomment this.
# ftp-force-mtime = yes

# uncomment the next line to see ftp statistics report.
# ftp-stats = yes

# to list up all available files, uncomment the next line.
# log-mask = main=6

# if you'd like to unlink no file, set unlink to false.
# unlink = no

# by default, $TMPDIR or "/tmp" is used for the temporary directory.
# temp-directory = /tmp

# generic directories (%s will be replaced with package name).
remote-directory = /pub/%s
local-directory  = ~ftp/pub/%s

# to use FTP Archive Revision Manager, setup db directories.
# for master servers:
# master-db-directory  = ~ftp/db/%s

# and for slave server:
# remote-db-directory  = /db/%s
# local-db-directory  = ~ftp/db/%s

# we will set up the lock-directory parameter, automatically
# (lock-directory = temp-directory is default).
# lock-directory = /tmp

# regexp to GET from remote server.
transfer-file-regexp += !/~$/
transfer-file-regexp += !/\/#/
transfer-file-regexp += !/\/\.#/
transfer-file-regexp += !/\/\.cache/
transfer-file-regexp += !/\/\.message/
transfer-file-regexp += !/\/\.mirror/
transfer-file-regexp += !/\/\.nfs/
transfer-file-regexp += !/\/\.notready/
transfer-file-regexp += !/\/\.in/
transfer-file-regexp += !/\/\.desc\.txt$/
transfer-file-regexp += !/\/core$/
transfer-file-regexp += !/\.core$/

# regexp to GET from remote server.
transfer-directory-regexp += !/~\/$/
transfer-directory-regexp += !/\/lost\+found\/$/

# FreeBSD's remote and local directories are generic form.
package = FreeBSD
 ftp-server = ftp.freebsd.org

# GNU archives on RingServers also have generic directories.
package = GNU
 ftp-server = ring.nacsis.ac.jp

# mirror the Apache's tree from a RingServer.
package = net/apache
 ftp-server = ring.asahi-net.or.jp

# directories can be specified as follows:
package = sendmail
 ftp-server = ftp.kyoto.wide.ad.jp
 remote-directory = /mail/sendmail
 local-directory = ~ftp/pub/mail/sendmail

# mirror the whole tree from a RingServer.
package = ring.aist.go.jp
 ftp-server = ring.aist.go.jp
 remote-directory = /
 local-directory = ~ftp
 override-directory-regexp += /^\.\/$/
 override-directory-regexp += /^\.\/pub\//
 override-directory-regexp += /^\.\/ring\//
 override-directory-regexp += !

# copy web pages to a remote server (put mode).
package = webcopy
 ftp-server = www.intec.co.jp
 ftp-user = www
 ftp-pass = nan-jara-hoi
 ftp-passive = yes
 put-mode = yes
 remote-directory = /usr/local/etc/httpd/htdocs
 local-directory = ~www/htdocs

# if remote FTP server support index files, set db directories.
package = utils
 ftp-server = ftp.intec.co.jp
 remote-db-directory = /db/%s
 local-db-directory = ~ftp/db/%s

#
# Sample configuration for 'upstream' package
# (added on 2007-01-29 for Debian packaging)
#
# Original upstream available at:
# ftp://ftp.intec.co.jp/pub/utils/ftpmirror
#
# In order to test this package you need to create
# /tmp/upstream directory manually and issue the
# following command: 
# 
#    /usr/sbin/ftpmirror upstream
# 
package = upstream
 ftp-server = ftp.sai.msu.su
 ftp-user = anonymous
 ftp-pass = mail@example.com
 ftp-stats = yes
 verbose=1
 debug=1
# ftp-passive = yes
# put-mode = yes
# remote-db-directory = /tmp/ftpmirror-remote/%s
# local-db-directory = /tmp/ftpmirror-local/%s
 transfer-file-regexp += !/\.pdf$/
 transfer-file-regexp += /ftpmirror/
 transfer-file-regexp += !/.*/
 remote-directory = /pub/unix/FTP/mirror/
 local-directory = /tmp/upstream
