|
NAMEarchive - Usenet article archiverSYNOPSISarchive [-cfr] [-a archive] [-i index] [-p pattern] [input]DESCRIPTIONarchive makes copies of files specified on its standard input. It is normally run either as a channel feed under innd or by a script before news.daily is run.archive reads the named input file, or standard input if no file is given. The input is taken as a sequence of lines; blank lines and lines starting with a number sign ("#") are ignored. All other lines should specify the token of an article to archive. Every article is retrieved from a token, and the Xref header field is used to determine the target file in the archive directory. You can limit the targets taken from the Xref header field with the -p option. Files are copied to a directory within the archive directory, patharchive in inn.conf (or some other directory given with -a). The default is to create a hierarchy that mimics a traditional news spool storage of the given articles; intermediate directories will be created as needed. For example, if the input token represents article 2211 in the newsgroup comp.sources.unix, archive will by default store the article as: comp/sources/unix/2211 in the archive area. This can be modified with the -c and -f options. OPTIONS
RETURN VALUEIf the input is exhausted, archive will exit with a zero status. If an I/O error occurs, it will try to spool its input, copying it to a file. If there was no input filename, the standard input will be copied to pathoutgoing/archive and the program will exit. If an input filename was given, a temporary file named input.bch (if input is an absolute pathname) or pathoutgoing/input.bch (if the filename does not begin with a slash) is created. Once the input is copied, archive will try to rename this temporary file to be the name of the input file, and then exit.EXAMPLESA typical newsfeeds(5) entry to archive most source newsgroups is as follows:source-archive!\ :!*,*sources*,!*wanted*,!*.d\ :Tc,Wn\ :<pathbin>/archive -f -i <patharchive>/INDEX Replace <pathbin> and <patharchive> with the appropriate paths. HISTORYWritten by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. Converted to POD by Russ Allbery <eagle@eyrie.org>.SEE ALSOinn.conf(5), libinn_uwildmat(3), newsfeeds(5).
Visit the GSP FreeBSD Man Page Interface. |