On 07/15/16 04:40, Jon LaBadie wrote:
> Each was mounted wherever, but in the same place each time.
> What amanda used was a single "changer" dir of "slots" that
> were symbolic links to the vtape in that slot on its
> corresponding disk.

This is also how my setup looks like.
I have a SATA disk bay in my PC where I can put a bare disk in (without
needing trays).
I run amanda manually every week with a wrapper script, which handles a
couple of things, like disk encryption (script attached).

Yours, Uwe

# l /backup/amanda/
total 20
drwxrwx---.  3 amandabackup disk 4096 2016-07-09 21:57 ./
drwxr-xr-x. 29 root         root 4096 2016-06-21 00:45 ../
lrwxrwxrwx.  1 amandabackup disk    6 2016-07-09 19:17 data -> slot16
-rwxr-xr-x.  1 root         root 4631 2016-03-12 16:28 do_backup.sh*
drwxr-xr-x.  2 root         root 4096 2009-05-25 22:08 hold/
lrwxrwxrwx.  1 root         root   16 2015-10-08 01:04 slot1 -> ../uwe-101/slot1
lrwxrwxrwx.  1 root         root   17 2015-10-10 21:20 slot10 -> 
../uwe-a02/slot10
lrwxrwxrwx.  1 root         root   17 2015-10-30 11:02 slot11 -> 
../uwe-a03/slot11
lrwxrwxrwx.  1 root         root   17 2015-10-30 11:02 slot12 -> 
../uwe-a04/slot12
lrwxrwxrwx.  1 root         root   17 2016-06-19 19:08 slot13 -> 
../uwe-a05/slot13
lrwxrwxrwx.  1 root         root   17 2016-06-19 19:09 slot14 -> 
../uwe-a06/slot14
lrwxrwxrwx.  1 root         root   17 2016-06-20 21:32 slot15 -> 
../uwe-a07/slot15
lrwxrwxrwx.  1 root         root   17 2016-06-20 21:49 slot16 -> 
../uwe-a08/slot16

# cat /etc/amanda/uwe/amanda.conf
org ""          # your organization name for reports
mailto "admin"          # space separated list of operators at your site
dumpuser "backup"       # the user to run dumps under
usetimestamps yes       # enable more than one run per day
inparallel 4            # maximum dumpers that will run in parallel
displayunit "m"         # Possible values: "k|m|g|t"
netusage 100000000
bumpsize    1 GB        # minimum savings (threshold) to bump level 1 -> 2
bumpdays    1           # minimum days at each level
bumpmult    2           # threshold = bumpsize * (level-1)**bumpmult
dumpcycle 8 weeks       # the number of days in the normal dump cycle
tapetype vtape-1t
tpchanger "chg-disk:/backup/amanda"
tapecycle 23 # the number of tapes that are available to Amanda
runtapes 1 # how many tapes can be used for a single exec of amdump
runspercycle 8 # how many days you plan to execute amdump during one dumpcycle
labelstr "^uwe-[0-9a-f][0-9][0-9]$"     # label constraint regex: all tapes 
must match
autoflush on    # also flush old dumps to the tape if there are any
reserve 20 # percent of holding disk to reserve for incremental dumps if no 
tape is inserted
infofile "/var/lib/amanda/uwe/curinfo"  # database filename
logdir  "/var/log/amanda/uwe/log"
indexdir "/var/lib/amanda/uwe/index"
define tapetype vtape-1t {
    comment "Virtual tapes on disks"
    length 976000000 kbyte # my disk is 976243896 kbyte, leave some slack for 
amanda files
}
define application-tool app_amgtar {
    plugin "amgtar"
    comment "amgtar with blocksize"
    property "XATTRS" "YES"
    property "TAR-BLOCKSIZE" "16384"
    property "GNUTAR-PATH" "/usr/local/bin/tar_nocache"
}
define dumptype normal {
        comment "dump with app_amgtar"
        program "APPLICATION"
        application "app_amgtar"
        index on
        auth "bsdtcp"
        compress server custom
        server_custom_compress "/bin/pigz"
        estimate client
        exclude "/etc/amanda/uwe/exclude.gtar"
        priority medium
}
define dumptype uncompressed {
        comment "dump with app_amgtar"
        program "APPLICATION"
        application "app_amgtar"
        index on
        auth "bsdtcp"
        compress none
        estimate client
        exclude "/etc/amanda/uwe/exclude.gtar"
        priority medium
}

Attachment: do_backup.sh
Description: application/shellscript

Reply via email to