|
Packit Service |
392537 |
'\" t
|
|
Packit Service |
392537 |
.\" Title: ambsdtar
|
|
Packit Service |
392537 |
.\" Author: Jean-Louis Martineau <martineau@zmanda.com>
|
|
Packit Service |
392537 |
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
|
|
Packit Service |
392537 |
.\" Date: 12/01/2017
|
|
Packit Service |
392537 |
.\" Manual: System Administration Commands
|
|
Packit Service |
392537 |
.\" Source: Amanda 3.5.1
|
|
Packit Service |
392537 |
.\" Language: English
|
|
Packit Service |
392537 |
.\"
|
|
Packit Service |
392537 |
.TH "AMBSDTAR" "8" "12/01/2017" "Amanda 3\&.5\&.1" "System Administration Commands"
|
|
Packit Service |
392537 |
.\" -----------------------------------------------------------------
|
|
Packit Service |
392537 |
.\" * Define some portability stuff
|
|
Packit Service |
392537 |
.\" -----------------------------------------------------------------
|
|
Packit Service |
392537 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Packit Service |
392537 |
.\" http://bugs.debian.org/507673
|
|
Packit Service |
392537 |
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
Packit Service |
392537 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Packit Service |
392537 |
.ie \n(.g .ds Aq \(aq
|
|
Packit Service |
392537 |
.el .ds Aq '
|
|
Packit Service |
392537 |
.\" -----------------------------------------------------------------
|
|
Packit Service |
392537 |
.\" * set default formatting
|
|
Packit Service |
392537 |
.\" -----------------------------------------------------------------
|
|
Packit Service |
392537 |
.\" disable hyphenation
|
|
Packit Service |
392537 |
.nh
|
|
Packit Service |
392537 |
.\" disable justification (adjust text to left margin only)
|
|
Packit Service |
392537 |
.ad l
|
|
Packit Service |
392537 |
.\" -----------------------------------------------------------------
|
|
Packit Service |
392537 |
.\" * MAIN CONTENT STARTS HERE *
|
|
Packit Service |
392537 |
.\" -----------------------------------------------------------------
|
|
Packit Service |
392537 |
.SH "NAME"
|
|
Packit Service |
392537 |
ambsdtar \- Amanda Application to interface with BSD Tar
|
|
Packit Service |
392537 |
.SH "DESCRIPTION"
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
Ambsdtar is an Amanda Application API script\&. It should not be run by users directly\&. It uses BSD Tar to backup and restore data\&.
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
The
|
|
Packit Service |
392537 |
\fBdiskdevice\fR
|
|
Packit Service |
392537 |
in the disklist (DLE) must be the directory to backup\&.
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
Extracting backup never remove files\&. If a file where present in the level 0 backup, you removed it, made a level 1 backup, then after extracting both levels, the file will be present\&.
|
|
Packit Service |
392537 |
.SH "PROPERTIES"
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
This section lists the properties that control ambsdtar\*(Aqs functionality\&. See
|
|
Packit Service |
392537 |
\fBamanda-applications\fR(7)
|
|
Packit Service |
392537 |
for information on application properties and how they are configured\&.
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
COMMAND\-OPTIONS
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
If set, theses options are passed asis to gtar\&. Each option must be a different value of the property\&. Some option can break how amanda do backup, use it with care\&.
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
Use:
|
|
Packit Service |
392537 |
.nf
|
|
Packit Service |
392537 |
property "COMMAND\-OPTIONS" "\-\-foo" "bar"
|
|
Packit Service |
392537 |
.fi
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
Do not use:
|
|
Packit Service |
392537 |
.nf
|
|
Packit Service |
392537 |
property "COMMAND\-OPTIONS" "\-\-foo bar"
|
|
Packit Service |
392537 |
.fi
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
DIRECTORY
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
If set, bsdtar will backup from that directory instead of the \fIdiskdevice\fR set by the DLE\&. On restore, the data is restore in that directory instead of the current working directory\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
SPARSE
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
If "YES", the default, it use the \-S option of bsdtar when restoring to create sparse files\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
STATE\-DIR
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
The directory where ambsdtar stores the database it uses to generate incremental dumps\&. The default is set when Amanda is built\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
BSDTAR\-PATH
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
The path to the bsdtar binary\&. The default is set when Amanda is built\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
ONE\-FILE\-SYSTEM
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
If "YES" (the default), do not allow bsdtar to cross filesystem boundaries\&. If "NO", bsdtar will cross filesystem boundaries\&. This corresponds to the \fI\-\-one\-filesystem\fR option of bsdtar\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
TAR\-BLOCKSIZE
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
Block size of Nx512 bytes (default N=20)\&. This corresponds to the \fI\-\-blocking\-factor\fR option of bsdtar\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
EXIT\-HANDLING
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
List which exit status of gtar are good or bad\&. eg\&. "1=GOOD 2=BAD", exit status of 1 will produce a good backup, exit status of 2 will give an error\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
NORMAL
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
List all regex (POSIX Extended Regular Expression syntax) that are normal output from gtar\&. These output are in the "FAILED DUMP DETAILS" section of the email report if the dump result is STRANGE or FAILED\&. Default values:
|
|
Packit Service |
392537 |
.nf
|
|
Packit Service |
392537 |
"^could not open conf file"
|
|
Packit Service |
392537 |
"^Elapsed time:"
|
|
Packit Service |
392537 |
"^Throughput"
|
|
Packit Service |
392537 |
": socket ignored$"
|
|
Packit Service |
392537 |
": File \&.* shrunk by [0\-9][0\-9]* bytes, padding with zeros"
|
|
Packit Service |
392537 |
": Cannot add file \&.*: No such file or directory$"
|
|
Packit Service |
392537 |
": Error exit delayed from previous errors"
|
|
Packit Service |
392537 |
.fi
|
|
Packit Service |
392537 |
To treat one of these default patterns differently, specify it explicitly in a different property\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
IGNORE
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
List all regex (POSIX Extended Regular Expression syntax) that amanda ignore\&. These output are never in the email report\&. Default values:
|
|
Packit Service |
392537 |
.nf
|
|
Packit Service |
392537 |
": Directory is new$"
|
|
Packit Service |
392537 |
": Directory has been renamed"
|
|
Packit Service |
392537 |
.fi
|
|
Packit Service |
392537 |
To treat one of these default patterns differently, specify it explicitly in a different property\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
STRANGE
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
List all regex (POSIX Extended Regular Expression syntax) that are strange output from gtar\&. All gtar output that doesn\*(Aqt match a normal or ignore regex are strange by default\&. The result of the dump is STRANGE if gtar produce a strange output\&. These output are in the "FAILED DUMP DETAILS" section of the email report\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
VERBOSE
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
Default: "NO"\&. If "YES", ambsdtar print more verbose debugging message and can leave temporary files in AMANDA_TMPDIR\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.SH "INCLUDE AND EXCLUDE LISTS"
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
This application supplies exclude lists via the
|
|
Packit Service |
392537 |
\fBGNU\-tar\fR\fB\-\-exclude\-from\fR
|
|
Packit Service |
392537 |
option\&. This option accepts normal shell\-style wildcard expressions, using
|
|
Packit Service |
392537 |
\fB*\fR
|
|
Packit Service |
392537 |
to match any number of characters and
|
|
Packit Service |
392537 |
\fB?\fR
|
|
Packit Service |
392537 |
to match a single character\&. Character classes are represented with
|
|
Packit Service |
392537 |
\fB[\&.\&.]\fR, which will match any of the characters in the brackets\&. Expressions can be "anchored" to the base directory of the DLE by prefixing them with "\&./"\&. Without this prefix, they will match at any directory level\&. Expressions that begin or end with a "/" will not match anything: to completely exclude a directory, do not include the trailing slash\&. Example expressions:
|
|
Packit Service |
392537 |
.sp
|
|
Packit Service |
392537 |
.nf
|
|
Packit Service |
392537 |
\&./temp\-files # exclude top\-level directory entirely
|
|
Packit Service |
392537 |
\&./temp\-files/ # BAD: does nothing
|
|
Packit Service |
392537 |
/temp\-files # BAD: does nothing
|
|
Packit Service |
392537 |
\&./temp\-files/* # exclude directory contents; include directory
|
|
Packit Service |
392537 |
temp\-files # exclude anything named "temp\-files"
|
|
Packit Service |
392537 |
generated\-* # exclude anything beginning with "generated\-"
|
|
Packit Service |
392537 |
*\&.iso # exclude ISO files
|
|
Packit Service |
392537 |
proxy/local/cache # exclude "cache" in dir "local" in "proxy"
|
|
Packit Service |
392537 |
.fi
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
Similarly, include expressions are supplied to
|
|
Packit Service |
392537 |
\fBGNU\-tar\fR\*(Aqs
|
|
Packit Service |
392537 |
\fB\-\-files\-from\fR
|
|
Packit Service |
392537 |
option\&. This option ordinarily does not accept any sort of wildcards, but ambsdtar "manually" applies glob pattern matching to include expressions with only one slash\&. The expressions must still begin with "\&./", so this effectively only allows expressions like "\&./[abc]*" or "\&./*\&.txt"\&.
|
|
Packit Service |
392537 |
.SH "EXAMPLE"
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
.nf
|
|
Packit Service |
392537 |
define application\-tool app_ambsdtar {
|
|
Packit Service |
392537 |
plugin "ambsdtar"
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
property "BSDTAR\-PATH" "/bin/bsdtar"
|
|
Packit Service |
392537 |
property "STATE\-DIR" "/xxx/yyy"
|
|
Packit Service |
392537 |
property "ONE\-FILE\-SYSTEM" "YES"
|
|
Packit Service |
392537 |
property "TAR\-BLOCKSIZE" "20"
|
|
Packit Service |
392537 |
property "EXIT\-HANDLING" "1=GOOD 2=BAD"
|
|
Packit Service |
392537 |
# change a default NORMAL regex to a STRANGE regex\&.
|
|
Packit Service |
392537 |
property "STRANGE" ": socket ignored$"
|
|
Packit Service |
392537 |
# add three new IGNORE regex
|
|
Packit Service |
392537 |
property "IGNORE" ": Directory is new$"
|
|
Packit Service |
392537 |
property append "IGNORE" ": Directory has been renamed"
|
|
Packit Service |
392537 |
property append "IGNORE" "file changed as we read it$"
|
|
Packit Service |
392537 |
}
|
|
Packit Service |
392537 |
.fi
|
|
Packit Service |
392537 |
A dumptype using this application might look like:
|
|
Packit Service |
392537 |
.sp
|
|
Packit Service |
392537 |
.nf
|
|
Packit Service |
392537 |
define dumptype ambsdtar_app_dtyp {
|
|
Packit Service |
392537 |
global
|
|
Packit Service |
392537 |
program "APPLICATION"
|
|
Packit Service |
392537 |
application "app_ambsdtar"
|
|
Packit Service |
392537 |
}
|
|
Packit Service |
392537 |
.fi
|
|
Packit Service |
392537 |
Note that the
|
|
Packit Service |
392537 |
\fIprogram\fR
|
|
Packit Service |
392537 |
parameter must be set to
|
|
Packit Service |
392537 |
\fI"APPLICATION"\fR
|
|
Packit Service |
392537 |
to use the
|
|
Packit Service |
392537 |
\fIapplication\fR
|
|
Packit Service |
392537 |
parameter\&.
|
|
Packit Service |
392537 |
.SH "SEE ALSO"
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fBamanda\fR(8),
|
|
Packit Service |
392537 |
\fBtar\fR(1),
|
|
Packit Service |
392537 |
\fBamanda.conf\fR(5),
|
|
Packit Service |
392537 |
\fBamanda-applications\fR(7)
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
The Amanda Wiki:
|
|
Packit Service |
392537 |
: http://wiki.zmanda.com/
|
|
Packit Service |
392537 |
.SH "AUTHORS"
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fBJean\-Louis Martineau\fR <\&martineau@zmanda\&.com\&>
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
Zmanda, Inc\&. (http://www\&.zmanda\&.com)
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fBDustin J\&. Mitchell\fR <\&dustin@zmanda\&.com\&>
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
Zmanda, Inc\&. (http://www\&.zmanda\&.com)
|
|
Packit Service |
392537 |
.RE
|