# 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.kernel.org
#RemoteDir: /pub/linux/kernel/v3.x
#LocalDir: /home/kernel
#File: linux-3.<int>.tar.gz

#Name: Kernel2
#Host: ftp.kernel.org
#RemoteDir: /pub/linux/kernel/v3.x
#LocalDir: /home/kernel
#File: linux-3.<int>.<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
