File: README

package info (click to toggle)
ftpgrab 0.1.2r-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 376 kB
  • ctags: 335
  • sloc: cpp: 2,790; makefile: 26
file content (64 lines) | stat: -rw-r--r-- 2,087 bytes parent folder | download | duplicates (3)
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
This is ftpgrab v0.1.2
Author: Chris Evans, <chris@ferret.lmh.ox.ac.uk>


ftpgrab is distributed under the GPL license.

What does ftpgrab do
====================

ftpgrab is a utility for maintaining FTP mirrors. In fact not unlike the
"Mirror" perl program. However ftpgrab is oriented towards the smaller
site which doesn't have the resources to mirror entire version trees of
software.

The primary "plus point" of ftpgrab is that it can base download decisions
by parsing version numbers out of filenames. For example, ftpgrab will
recognize that the file "linux-2.2.2.tar.gz" is newer than
"linux-2.2.1.tar.gz" based on the version string. It will then download
the new version and delete the old one when it is done, thus saving you
mirroring 10's of kernel versions all at >10Mb each.

Usage
=====

To use ftpgrab, see the "ftpgrabrc" example file that comes with this
tarball. Customize the file as needed. When done simply run the ftpgrab
program whilst in the directory containing the "ftpgrabrc" file you want
parsed.

ftpgrab will parse the file, iterate across all download rules once, then
exit. Hence if you want to run ftpgrab in a daemon like mode, do something
like

while true; do ./ftpgrab; sleep 12h; done

In a future version this will not be neccessary (ftpgrab will gain a
daemon-like mode).

Problems?
=========

If you have any problems it is likely to be my fault for lack of
documentation. However, check out "fglog.out" to see if any useful
messages crop up in there. If you are still stuck drop me a note (my
e-mail is at the top of this README), and I will try and help you. There
is every possibility you will hit bugs.

Limitations
===========

- HTTP protocol not yet supported. Will be in a future release.
- Needs recursive fetch options
- Needs version parsing in directory components too
- See TODO
- Only tested against a small amount of FTP servers

To those who say "why bother"
=============================

Yeah I know... Mirror does a very similar thing. But I felt like writing
my own tool that did exactly what we needed ;-)

Cheers
Chris