NAME
amgtar - Amanda Application to interface with GNU TarDESCRIPTION
Amgtar is an Amanda Application API script. It should not be run by users directly. It uses GNU Tar to backup and restore data. The diskdevice in the disklist (DLE) must be the directory to backup.PROPERTIES
This section lists the properties that control amgtar's functionality. See amanda-applications(7) for information on application properties and how they are configured. ATIME-PRESERVEIf 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.
Use:
Do not use:
DIRECTORY
property "COMMAND-OPTIONS" "--foo" "bar"
property "COMMAND-OPTIONS" "--foo bar"
"^could not open conf file" "^Elapsed time:" "^Throughput" ": socket ignored$" ": File .* shrunk by [0-9][0-9]* bytes, padding with zeros" ": Cannot add file .*: No such file or directory$" ": Error exit delayed from previous errors" ": directory is on a different filesystem; not dumped"To treat one of these default patterns differently, specify it explicitly in a different property.
": Directory is new$" ": Directory has been renamed"To treat one of these default patterns differently, specify it explicitly in a different property.
INCLUDE AND EXCLUDE LISTS
This application supplies exclude lists via the GNU-tar--exclude-from option. This option accepts normal shell-style wildcard expressions, using * to match any number of characters and ? to match a single character. Character classes are represented with [..], 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:./temp-files # exclude top-level directory entirely ./temp-files/ # BAD: does nothing /temp-files # BAD: does nothing ./temp-files/* # exclude directory contents; include directory temp-files # exclude anything named "temp-files" generated-* # exclude anything beginning with "generated-" *.iso # exclude ISO files proxy/local/cache # exclude "cache" in dir "local" in "proxy"Similarly, include expressions are supplied to GNU-tar's --files-from option. This option ordinarily does not accept any sort of wildcards, but amgtar "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".
EXAMPLE
define application-tool app_amgtar { plugin "amgtar" property "ATIME-PRESERVE" "NO" property "CHECK-DEVICE" "YES" property "GNUTAR-LISTDIR" "/path/to/listdir" property "GNUTAR-PATH" "/bin/tar" property "ONE-FILE-SYSTEM" "YES" property "TAR-BLOCKSIZE" "20" property "SPARSE" "YES" property "ACLS" "NO" property "SELINUX" "NO" property "XATTRS" "NO" property "EXIT-HANDLING" "1=GOOD 2=BAD" # change a default NORMAL regex to a STRANGE regex. property "STRANGE" ": socket ignored$" # add three new IGNORE regex property "IGNORE" ": Directory is new$" property append "IGNORE" ": Directory has been renamed" property append "IGNORE" "file changed as we read it$" }A dumptype using this application might look like:
define dumptype amgtar_app_dtyp { global program "APPLICATION" application "app_amgtar" }Note that the program parameter must be set to "APPLICATION" to use the application parameter.
SEE ALSO
amanda(8), tar(1), amanda.conf(5), amanda-applications(7) The Amanda Wiki: : http://wiki.zmanda.com/AUTHORS
Jean-Louis Martineau <[email protected]>Zmanda, Inc. (http://www.zmanda.com)
Dustin J. Mitchell <[email protected]>
Zmanda, Inc. (http://www.zmanda.com)
12/01/2017 | Amanda 3.5.1 |