lintian doesn't like orphan packages with uploaders...
[debian/amanda] / example / template.d / amanda-harddisk.conf.in
index e1c920be7383d6d88ce84a5dc24641717068dc24..3abbc16d47e194a1ac5d71239e9754c633ef2d82 100644 (file)
@@ -10,10 +10,13 @@ tapecycle 10 tapes             # the number of tapes in rotation
                                # backups performed at the beginning of the previous
                                # cycle
 runtapes 1                     # number of tapes to be used in a single run of amdump
-tpchanger "chg-disk"           # the tape-changer glue script
-tapedev "file://var/lib/amanda/vtapes/@DEFAULT_CONFIG@" # the no-rewind tape device to be used
-changerfile "@CONFIG_DIR@/@DEFAULT_CONFIG@/changer.conf"
-changerdev "/dev/null"
+
+define changer my_vtapes {
+    tpchanger "chg-disk:/@prefix@/var/lib/amanda/vtapes/@DEFAULT_CONFIG@"
+    property "num-slot" "10"
+    property "auto-create-slot" "yes"
+}
+tpchanger "my_vtapes"
 tapetype HARDDISK               # what kind of tape it is 
 labelstr "^@DEFAULT_CONFIG@-[0-9][0-9]*$"    # label constraint regex: all tapes must match
 dtimeout 1800                          # number of idle seconds before a dump is aborted.
@@ -26,9 +29,18 @@ define dumptype global {
         auth "bsdtcp"
 }
 
+#define application-tool and dumptype for the amgtar application
+define application-tool app_amgtar {
+    comment "amgtar"
+    plugin  "amgtar"
+    #property "GNUTAR-PATH" "/path/to/gtar"
+    #property "GNUTAR-LISTDIR" "/path/to/gnutar_list_dir"
+}
+
 define dumptype gui-base {
        global
-        program "GNUTAR"
+       program "APPLICATION"
+        application "app_amgtar"
         comment "gui base dumptype dumped with tar"
         compress none
         index yes
@@ -37,6 +49,8 @@ define dumptype gui-base {
 define tapetype HARDDISK {
     comment "Virtual Tapes"
     length 5000 mbytes
+    part_size 500 mbytes
+    part_cache_type none
 }
 
 includefile "./advanced.conf"