Re: amvault to terteriary media

Jose M Calhariz <[email protected]>
Newsgroups gmane.comp.archivers.amanda.user
Message-ID <[email protected]>
Hi,

Have you tried?

amlabel -f -otapetype="LTO2" -otpchanger="" -olabelstr="Vault-[1-7]"
-ostorage=tape_storage vtl Vault-1  slot 1


Kind regards
Jose M Calhariz

On Fri, Sep 10, 2021 at 04:09:48AM -0400, Winston Sorfleet wrote:
> Is there anyone here making use of amvault, who has gotten amlabel to work?
> 
> My old, old recipe went something like this: amlabel -f -otapetype="LTO2"
> -otpchanger="" -olabelstr="Vault-[1-7]" -otapedev="/dev/nst0" vtl Vault-1
> slot 1
> 
> But that doesn't work with the current amanda.conf format
> 
> Here's my /etc/amanda/vtl/amanda.conf, which vaults fine IF I have an
> already-labelled tape.  Note the difference between "storage" - which is vtl
> - and "vault-storage" which should be the LTO.
> 
> ------------------------------------------------------------------------
> 
> 
> org "Romanus"                   # your organization name for reports
> mailto "[email protected]" # space separated list of operators at your site
> dumpuser "backup"
> 
> dumpcycle 7                # the number of days in the normal dump cycle
> runspercycle 5                 # the number of amdump runs in dumpcycle days
> 
> tapecycle 40 tapes             # the number of tapes in rotation
> 
> storage "vtl"
> vault-storage "tape_storage"
> tpchanger "archivedisks"
> tapetype "HARDDISK"               # what kind of tape it is
> runtapes  6                    # number of tapes to be used in a single run
> of amdump
> 
> define dumptype global {
>         comment "Global definitions"
>         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 "APPLICATION"
>         application "app_amgtar"
>         comment "gui base dumptype dumped with tar"
>         compress none
>         index yes
> }
> 
> define tapetype HARDDISK {
>     comment "Virtual Tapes"
>     length 19768960 kbytes
>     part_size 500 mbytes
>     part_cache_type none
> }
> 
> define changer LTO-2 {
>     tpchanger "chg-single:/dev/nst0"
>     device-property "LEOM" "TRUE"
> }
> 
> define changer archivedisks {
>     tpchanger "chg-disk:/amandatapes"
>     property "num-slot" "45"
>     property "auto-create-slot" "yes"
> }
> 
> define storage "vtl" {
>     tapedev "archivedisks"
>     labelstr "vtl[0-9][0-9]*$"     # label constraint regex: all tapes must
> match
> }
> 
> define storage "tape_storage" {
>     erase-on-failure yes
>     policy "HP_Robot"
>     runtapes 1
>     set-no-reuse no
>     #tapedev "HP_G2"
>     tapedev "LTO-2"
>     tapetype "LTO2"
>     tapepool "$r"
>     tpchanger "LTO-2"
>     labelstr "Vault-[1-7]"
>     autolabel "Vault-%" any
> }
> 
> includefile "./advanced.conf"
> includefile "/etc/amanda/template.d/dumptypes"
> includefile "/etc/amanda/template.d/tapetypes"
> 
> 

-- 
--

O capitalismo dita inortodoxias, dissolve padrões sociais tradicionais e aplica medidas comerciais e boa parte da vida. Por isso, a sociedade capitalista deve desenvolver também um forte sistema de valores

--Henry Analote Grunwald
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEERkvHzUOf7l6LQJigNIp3jWiF748FAmE7g7QACgkQNIp3jWiF
749lYQ/6Az1HwxHaYkgp4jA7K6LfRcucIHAkIRoBIkh6vCCWOWVIYQOPU5ODg1bC
MyaK14LIpqVFawP58dpdw8a/E5oDkuGnmy35UwRxk2aCULu+33TXgQM+s23XvvEj
AdpSQMrAa2V9aE3mWzpYEHv9QEaDMCo8DTvAhIXXYJ9vsvq3o30FBgdoM8IK1hjL
coZju3C3Bze5n4TLTs7bcNbVfELjy/e4BNwhHnfR1rCmUVLJDArNdlYSt5Plv1i9
AEQkCgec4iePsxE2q9VIyr0EKo/QyRQmMO/HmRGnPhHZvuQ66LvWYzHn1mrf3Ncq
goR69/eWwvpRUntf/OSWSKeVKecKeH6eGZYN8+SJmHtnd7rZiIOPhsyBXc7UZ3U6
S6DsSqzW1diMqQ6ay+cO8deS+HsCPiS8EhIjIaeG5E0NjFIokbwYpp2pCd4VX5jl
vb/uKeJKYR/ZxWX/Doe98r4yEIh72LaXFem2wJpO/kew/JdMAKiNUeQ7stPi1Hvt
Ul40WC6NEYt4EL/9P77diP0n1L4evNroEeo6MZTdpjb4QzX+lZg+ezO0ucty/pxB
g6RmHa52oSOLpCe2ByAEGb6iL5HH6yepATknpAe4sThOPRWJSnN3eOH72P6hEYxq
v5H56XXqGjXc/FSbaULeTUbx94SDNPxCdemwcc3q9VPVGDtNpog=
=J3rY
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.