On Tue, Jul 11, 2017 at 08:06:29AM +0200, Stefan G. Weichinger wrote:
> Sure, pls share for us to learn/copy/ask.

This is the amanda.conf (disklist is not relevant)

org "DailySet"
infofile "/var/amanda/state/DailySet/curinfo"
logdir "/var/amanda/state/DailySet/log"
indexdir "/var/amanda/state/DailySet/index"

# Taperscan is needed because otherwise tape change mail doesn't work!
define taperscan OLDEST-TAPERSCAN {
        plugin "lexical"
}

# Stuff for the VTAPE storage - daily operations
define tapetype VTAPE-TAPE {
        comment "220 GB VTAPE"
        length 220 gbytes
        filemark 64 kbytes
        part-size 8 gbytes
}

define changer VTAPE-CHANGER {
        tpchanger "chg-disk:/vtape/DailySet"
        property "NUM-SLOT" "30"
        property "AUTO-CREATE-SLOT" "yes"
}

define storage "VTAPE-STORAGE" {
        tapetype "VTAPE-TAPE"
        labelstr "DailySet[0-9][0-9][0-9]"
        tpchanger "VTAPE-CHANGER"
        autoflush all
        runtapes 1
}

# Stuff for the LTO drive
define device LTO-DEVICE {
        tapedev "tape:/dev/nst0"
        device-property "BLOCK_SIZE" "262144"
        device-property "LEOM" "no"
}

define changer LTO-CHANGER {
        tpchanger "chg-single:LTO-DEVICE"
}

# Note for myself: buy LTO3 tapes, double capacity and a LOT faster
define tapetype LTO2-TAPE {
        comment "LTO-2 Tape in LTO-3 Drive"
        length 200 gbytes
        filemark 512 kbytes
        speed 22000 kps
        blocksize 256 kbytes
}

# Vaulting the full dump takes 2 LTO2 tapes
define policy "VAULT-POLICY" {
        retention-days 0
        retention-full 0
        retention-tapes 3
        retention-recover 0
}

define storage "VAULT-STORAGE" {
        tapetype  "LTO2-TAPE"
        tpchanger "LTO-CHANGER"
        labelstr  "DailySetT[0-9][0-9][0-9]"
        policy "VAULT-POLICY"
        runtapes 2
}

# Gigabit ethernet
define interface "eth0" {
        comment "Ethernet connected"
        use 80000000
}

# Send mail for tape change
define interactivity EMAIL-INTERACTIVITY {
        plugin "email"
        property "mailto" "[email protected]"
        property "resend-delay" "1800"
        property "check-file" "/tmp/amanda/email-input"
        property "check-file-delay" "10"
}

holdingdisk HOLDING1 {
        directory "/var/amanda/holding/DailySet"
        use 300 gbytes
        chunksize 0
}

# application-tool and dumptype here --- not relevant

# General dump configuration to tie all together
dumpuser "amanda"
mailto "[email protected]"
taperscan "OLDEST-TAPERSCAN"
send-amreport-on all
interactivity "EMAIL-INTERACTIVITY"
displayunit "m"
columnspec "HostName=0:-10:10,Disk=1:-10:10"
storage "VTAPE-STORAGE"
tapecycle 30 tapes
dumpcycle 10 days
runspercycle 10


Now, the vtape dump is done with 'amdump DailySet', as usual.

The vaulting run is done with

amvault DailySet --latest-fulls --dest-storage VAULT-STORAGE

Where 'dest-storage' is the mandatory option (IIRC there is a default or
an option in amanda.conf to be used for automatic vaulting too)

Have fun

If only 3.4.5 wouldn't have the 'stuck taper syndrome' it would work
quite fine. I sometime I have to kill the stuck taper in the morning :(

-- 
Lorenzo Marcantonio

Attachment: signature.asc
Description: PGP signature

Reply via email to