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 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312
|
.TH AFCLIENT 8 "1998 February 9" "Debian Project"
.SH NAME
afclient \- controls the client functions of the afbackup package
.SH SYNOPSIS
.B afclient
-cxtd [-RraunlOvgIiqQZwb]
[-h <backup-server>]
[-z <zipcmd> <unzipcmd>]
[-T <to-extract-filename>]
[-C <cartridge-number>]
[-F <filenumber-on-tape>]
[-f <archive-filename>]
[-e <errorlog-filename>]
[-p <server-port-number>]
[-N <newer-than-filename>]
[-o <user-ID>]
[-k <encrption-key-file>]
[-s <dont-compress-filepattern> [-s ...]]
[ -H <header> ]
[-V <statistics-report-file>]
.I [<files> <directories> ...]
.br
.B afclient
-X <program>
[ -h <backup-client> ]
.br
.B afclient
-?
.br
.B afclient
-usage
.PP
The first form is similar to
.B tar
(1), except that it contacts a
backup server, if the -f option is not supplied.
.PP
The second form is used to start a program remotely on
another host. In most cases this will be one of:
.PP
.RS
.B afclient
-X full_backup -h <some-host>
.br
.B afclient
-X incr_backup -h <some-host>
.br
.RE
.PP
Normally this host is a backup client and a backup is started
this way. Only programs can be started, that reside in the
directory, that is configured in the backup server's configu-
ration file unter "Program-Directory".
.PP
The third form produces the following help text:
.SH DESCRIPTION
This program is used to maintain archives on a backup server
host or in a file. Archives can be created, extracted or their
contents be listed. One of the following flags has always to
be supplied:
.TP
.B -c
to create an archive
.TP
.B -x
to extract from an archive
.TP
.B -t
to list the contents of an archive
.TP
.B -d
to verify (compare) the contents of an archive
.TP
.B -C
to set a certain cartridge on the backup server
(makes only sense extracting or listing with
.B -x
or
.B -t,
the writing position can't be changed by clients)
.TP
.B -F
to set a certain file on the backup server's tape
(same applies as for
.B -C
)
.TP
.B -q
to printout the actual cartridge and tape file number
on the backup server
.TP
.B -Q
to printout the cartridge and tape file number for the
the next write access on the backup server
.TP
.B -X
followed by the full path name of a program to be started on
the client. This can be used to trigger a backup remotely.
If the program needs arguments, the command together with
the arguments has to be enclosed by quotes
.TP
.B -I
to printout an index of the backups written to the actual
cartridge
.TP
.B -w
to check the status of the streamer on the server side, e.g.
whether it is ready and waiting for requests to service,
see below for possible states
.PP
.B -c, -x, -t
and
.B -X
are mutual exclusive. The other options can
be supplied as needed. To set the cartridge and/or the tape file
on the backup server is only making sense when not creating
an archive. The serial order of writing to tape is handled by
the server machine independently of the client.
.PP
More options in alphabetical order:
.PP
.TP
.B -a
in combination with
.B -x
: extract all files and directories in the archive
.TP
.B -b
don't enter buffering mode
.TP
.B -e <errlog>
Use the file <errlog> to write error messages to
instead of the standard error output
.TP
.B -f <file>
write to or read from a file instead of querying
the backup server
.TP
.B -g
while extracting/reading: ignore leading garbage,
suppress error messages at the beginning. This
is useful when extracting from tape files, that
are not the first ones of a whole archive.
.TP
.B -H <header>
put the supplied informational header to the begin
of the backup
.TP
.B -h <host>
use the backup server with the name <host>
default host is the machine with the name
backuphost
.TP
.B -i
while extracting: ignore the stored ownership and
do not restore it
.TP
.B -k <file>
use the contents of the given file as encryption
key for authenticating to the server
.TP
.B -l
for each packed or unpacked filename, if sending
to or receiving from a backup server in verbose
mode in combination with -n:
printout server name and port number at the
beginning of the line, e. g.: orion%2988!
.TP
.B -N <file>
while archiving: ignore files with a modification
time before the one of the given file, only save
newer files or such with the same age in seconds
.TP
.B -n
for each packed or unpacked filename, if sending
to or receiving from a backup server in verbose
mode:
printout cartridge and tape file number at the
beginning of the line, e. g.: 7.15: <filename>
.TP
.B -O
for each packed file creating a backup in verbose
mode: printout the user-ID of the file owner at
the beginning of the line prefixed with a bar |
eventually behind cartridge and file number
.TP
.B -o <uid>
archive or extract only files owned by the user
with the given user-ID (an integer)
.TP
.B -p <portno>
use a different port number for communicating with
the backup server. Default is TCP-Port 2988
.TP
.B -R
pack or extract directories recursively with all
of their contents
.TP
.B -r
use filenames relative to the current directory,
whether they start with a slash or not
.TP
.B -S <cartset>
The cartridge set to use, where <cartset> is the
number of a valid cartridge set on the server
side. Default is 1. This option makes sense only
when creating backups with
.B -c
.TP
.B -s <filepat>
do not attempt compression on files matching the
given filename pattern. This parameter may
appear several times
.TP
.B -T <file>
read the filenames to process from the <file>.
The filenames must be separated by whitespace.
If whitespace is part of a filename, it has to
be enclosed by double quotes. Double quotes or
backslashes within the filename have to be
preceded by a backslash
.TP
.B -u
while extracting: remove existing files with the
same name as found in the archive. Otherwise
no existing files are overwritten
.TP
.B -V <file>
write a report containing statistics at the end of
a backup to the <file>
.TP
.B -v
verbose mode: print the filenames while creating
or extracting, be a little more verbose while
listing contents
.TP
.B -z <z> <uz>
use <z> as the command, that is used to compress
files, <uz> for the corresponding uncompress.
The command has to read from stdin and to write
to stdout. If arguments have to be supplied to
<z> and/or <uz>, don't forget to use quotes
.TP
.B -Z
while printing out the contents: check those files
in the archive that are compressed for integrity
.TP
.B -?
to printout this text
.SH FILENAMES
The names of the files and directories, that have to be put
into or extracted from an archive are by default read from the
standard input. If you supply filenames in the command line or
enter the
.B -a
flag when extracting, standard input is not read.
The same is valid, if filenames are read from a file with the
.B -T
option. When reading the names from a file or from standard
input, filenames have to be separated by whitespace. If a name
is containing whitespace, it has to be enclosed in double
quotes (\"). If a name contains double quotes or backslashes,
each has to be preceded by a backslash (so backslashes become
double backslashes).
.SH STATUS REPORTS
The -w option reports one of the following states,
seperated by the plus character + :
.PP
.TP
.B READY
the device is not in use by any program and the
server side is ready to service requests
.TP
.B BUSY
the device is in use and actually operated by the
afbackup service
.TP
.B DEVINUSE
the streamer device is in use by some program, that
is not part of the afbackup service
.TP
.B UNAVAIL
the streamer device is not accessible or in some
other way occupied
.TP
.B UNLOADED
the device is not busy, but there is no tape loaded
.TP
.B CHANGEABLE
when reported together with UNLOADED, a tape can be
loaded quickly e.g. using the afclient command with
option -C <cartno>. It is not considered quickly,
if a human operator must put the cartridge into the
drive, so in this case only UNLOADED is reported.
When reported with READY, the tape can be changed
quickly (same understanding as before).
.SH FILES
.IP @clientlibdir@/@clientconf@
Client configuration file
.IP @clientlogdir@
The directory for logging the client backups
.IP @clientvardir@
Some internal state information of the client backups.
.SH SEE ALSO
afclientconfig(8), xafclientconfig(8), full_backup(8),
incr_backup(8), afverify(8), afrestore(8), print_errors(8),
afclient.conf(8), afserver.conf(8), tar(1)
.SH AUTHOR
.B afbackup
was written by Albert Fluegel (af@muc.de). This manpage was
extracted from the text docs by Christian Meder
(meder@isr.uni-stuttgart.de).
|