3.3

Table Of Contents
130
diskcopy
diskcopy -[<# of simultaneous copies>]
diskcopy <start block> [<end block>]
Copies database from master computer (usually server A) to a replacement computer. Enter
it on the replacement server.
doc
To get text from database use:
doc -gt[u] <queue> [slug...]
or:
doc -gts[u] <queue> <story id>
To get NSML from database use:
doc -g[2] <queue> [slug...]
or:
doc -gs[2] <queue> <story id>
If no slugs are given, the entire queue is done. The slug must be one word or enclosed in
quotes.
To put text into the database use:
doc -pt[u] <queue> [file...]
To put NSML into the database use:
doc -p[2] <queue> [file...]
If no files are given, standard input is read.
The -g option does not take any file name parameters; standard output is assumed. If output
is to be written into a file, shell file redirection must be used (as in “> output-file-name”).
The -g option defaults to NSML format input / output and lines are terminated with CR/LF
characters.
The t modifer specifies that the input / output will be in plain text format. The u option
specifies Linux line termination is used—that is, lines are terminated with an LF character.
The -p option will take input from its standard input if no files are specified. This will put a
single story into the database composed of the data read from its standard input up to an end
of file condition.