How To:Use Amanda Applications on a Client

From wiki.zmanda.com
Revision as of 16:10, 12 December 2008 by Dustin (talk | contribs) (from Application API)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The application must be defined in amanda.conf

Define the my_application application using the myapplication binary.

 define application-tool my_application {
    comment "a comment"
    "my_app"                          # inherit config of the my_app application
    plugin  "myapplication"           # name of the application, it must be installed in dumper dir
    property "mailto" "amandabackup"  # can set property
 }

The dumptype must specify the application

Define the "my_dumptype" dumptype using the "my_application" application

 define dumptype my_dumptype {
    program "APPLICATION"
    application "my_application"
 }

Define the my_dumptype_2 using a modified my_application application

 define dumptype my_dumptype_2 {
    program "APPLICATION"
    application {                # define a custom application
       "my_application"          # inherit setting from another application
       property "mailto" "root"  # override property
    }
 }

Disk List Entries using my_dumptype or my_dumptype_2 will use the myapplication application to back up the client.

Available application

amgtar

 define application-tool app_amgtar {
     comment "amgtar"
     plugin  "amgtar"
     #property "GNUTAR-PATH" "/path/to/gtar"
     #property "GNUTAR-LISTDIR" "/path/to/gnutar_list_dir"
                   #default from gnutar_list_dir setting in amanda-client.conf
     #property "ONE-FILE-SYSTEM" "yes"  #use '--one-file-system' option
     #property "SPARSE" "yes"           #use '--sparse' option
     #property "ATIME-PRESERVE" "yes"   #use '--atime-preserve=system' option
     #property "CHECK-DEVICE" "yes"     #use '--no-check-device' if set to "no"
 }
 define dumptype dt_amgtar {
     program "APPLICATION"
     application "app_amgtar"
 }

Your DLE must inherit from the dt_amgtar dumptype.

amstar

 define application-tool app_amstar {
     comment "amstar"
     plugin  "amstar"
     #property "STAR-PATH" "/path/to/star"
     #property "STAR-TARDUMP" "/path/to/tardumps"  # default /etc/tardumps
     #property "STAR-DLE-TARDUMP" "no"
         # if 'yes' then create a different tardump file for each DLE,
         # it is required if you do many dump in parallel (maxdump>1)
     #property "ONE-FILE-SYSTEM" "yes"  #use '-xdev' option
     #property "SPARSE" "yes"           #use '-sparse' option
 }
 define dumptype dt_amstar {
     program "APPLICATION"
     application "app_amstar"
 }

Your DLE must inherit from the dt_amstar dumptype. amstar can only be used to backup full disk, i.e. the mount point.