File: ftpmirror.cf

package info (click to toggle)
ftpmirror 1.96+dfsg-16
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,080 kB
  • sloc: perl: 2,496; sh: 1,811; makefile: 51; ansic: 22
file content (134 lines) | stat: -rw-r--r-- 3,761 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# 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