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
|
# Example ftpgrabrc file
#
# Host can be prefixed by ftp:// or http:// otherwise ftp is assumed
# n.b. http isn't implemented yet though
# This rule keeps local copies of the 3 most recent versions of filenames
# that look like "file1.txt", "file10.txt" etc. "Most recent" is not
# defined by date, but by the version string embedded in the filename
#Name: TestRule
#Host: localhost
#RemoteDir: /pub
#LocalDir: /tmp/files
#File: [3]file<int>.txt
# This rule downloads all new files in /pub directory
#Name: TestRule2
#Host: localhost
#RemoteDir: /pub
#LocalDir: /tmp/fgdest
#File: *
# This rule downloads all new files in /pub directory AND deletes
# all files in /tmp/fgdest NOT found remotely. So beware
#Name: TestRule3
#Host: localhost
#RemoteDir: /pub
#LocalDir: /tmp/fgdest
#File: *
# This rule keeps the most recent linux kernel tarball in /home/kernel :)
#Name: Kernel1
#Host: ftp.uk.kernel.org
#RemoteDir: /pub/linux/kernel/v2.2
#LocalDir: /home/kernel
#File: linux-2.2.<int>.tar.gz
# This rule keeps the most recent version of Wine in /home/wine
# The yymmdd format date is parsed out of the filename. Yes it works after
# Y2K :-)
#Name: WineMain
#Host: tsx-11.mit.edu
#RemoteDir: /pub/linux/ALPHA/Wine/development
#LocalDir: /home/wine
#File: Wine-<YYMMDD>.tar.gz
# This rule downloads all files ending in ".rpm"
# Note the use of a regular expression; arbitrary regular expressions
# may be used
# If the first character of the File field is "/", this denotes a
# regular expression
#Name: Crypto RPMs
#Host: ftp.replay.com
#RemoteDir: /pub/crypto/redhat/i386
#LocalDir: /home/ftp/crypto
#File: /.*\.rpm
# This rule downloades all files ending in ".rpm"
# Additionally local ".rpm" files not found on the remote site are deleted
# The chacter "!" appearing after the "/" (denoting regexp) causes the
# deletion behaviour
#Name: Crypto RPMs
#Host: ftp.replay.com
#RemoteDir: /pub/crypto/redhat/i386
#LocalDir: /home/ftp/crypto
#File: /!.*\.rpm
# This small yet often useful feature, namely <optchar>, can be useful for
# stuff like samba which likes subversions 'a', 'b', etc. An example is
# probably best. New in v0.1.1
# Note that the character is _optional_, so 2.0.5 is a match, but 2.0.5a
# is a better match and 2.0.5b better still. If you want the character
# non-optional, use <char>
#Name: Samba (UK mirror)
#Host: uk.samba.org
#RemoteDir: /packages/samba
#LocalDir: /home/ftp/samba
#File: file-2.0.<int><optchar>.tar.gz
|