DOKK / manpages / debian 10 / ftpmirror / ftpmirror.8.en
FTPMIRROR(8) FTPMIRROR(8)

ftpmirror - Mirroring directory hierarchy using FTP protocol

ftpmirror [package]

ftpmirror is an utility to copy directory hierarchy (usually called 'mirror') using FTP protocol.

A similar perl script exists, whose name is 'mirror', but ftpmirror requires less memory than mirror.

Please, note that the original documentation about ftpmirror was written originally in japanese. (README.jis and RELEASE.jis)

If you can contribute by translating any aspect of these files, please contact Dario Minnucci <debian@midworld.net>. I'll be glad to include your contributions here to improve this manual.

Formerly ftpmirror operatio mode was MASTER->SLAVE but seems that since version 1.96 the SLAVE->MASTER (reverse mirror) is supported.

This behaviour can be controlled for each package section in the main configuration file (/etc/ftpmirror/ftpmirror.cf).

MASTER->SLAVE --> get-mode = yes (default)
SLAVE->MASTER --> put-mode = yes

Other configuration flags extracted from original documentation are: (Sorry but most of them are still undocummented.)

(string, default: full-mirror)

(boolean, default: no)

(comma separated list)

(boolean, default: no)

(string)

(string)

(service, default: ftp)

(ip address)

(string, default: anonymous)

(string, default: `whoami`@`hostname`)

(string)

(string)

(boolean, default: no) To enable passive file transfer set ftp-passive to yes.

(numeric, default: 0)

(boolean, default: 0)

(LIST or STAT or STAT-A or STAT-AT, default: STAT)

(numeric, default: 300)

(numeric)

(numeric, default: 60)

(boolean, default: no)

(timezone string, default: undef)

(string)

(string)

(string)

(boolean, default: no)

(boolean or 'rename', default: yes)

(size value, default: 0)

(boolean, default: no)

(boolean, default: no)

(pathname, default: $TMPDIR || /tmp)

(pathname, default: temp-directory)

(boolean, default: yes)

(string)

(pathname)

(pathname)

(pathname)

(pathname)

(string)

(pathname)

(regexp)

(regexp)

(regexp)

(regexp)

(boolean, default: no)

(boolean, default: no)

(boolean, default: no)

(uid, default: 0)

(uid, default: 0)

(octal value, default: 0644)

(octal value, default: 0755)

(uid, default: 0)

(gid, default: 0)

(octal value, default: 0644)

(octal value, default: 0755)

ftpmirror provides a 'ready-to-use' sample package for testing porpouses. In order to run the provided test package you need to issue the following commands (both commands must be run by the same user):

mkdir -p /tmp/upstream
/usr/bin/ftpmirror upstream

This package should copy directory hierarchy from the original author's FTP location (ftp://ftp.intec.co.jp/pub/utils/ftpmirror) to your local hard drive (/tmp/upstream).

The inclusion of this configuration is intended to be used ocassionally. Please don't abuse this site.

For other supported configuration options see /etc/ftpmirror/ftpmirror.cf where you will find commented examples.

ftpmirror was originally written by Ikuo Nakagawa <ikuo@intec.co.jp>

This manual page was written by Dario Minnucci <debian@midworld.net>, for the Debian project (but may be used by others).

June 1, 2007 Dario Minnucci <debian@midworld.net>