Amanda-Users

Re: Amanda file driver questions

2006-12-19 17:48:40
Subject: Re: Amanda file driver questions
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: up AT 3 DOT am
Date: Tue, 19 Dec 2006 23:32:34 +0100
up AT 3 DOT am schreef:
I'm switching from a DLT backup system to a disk-based backup system with
occasional tapes for offsite backups.  I followed the instructions at:

http://www.amanda.org/docs/howto-filedriver.html

Also have a look at the updated version:

http://wiki.zmanda.com/index.php/File_driver



and was able to get the first backup, but I seem confused about how to do
a "virtual tape" rotation.  I never used a changer before, so perhaps I
don't get the distinction between the slot number and the tape number.  I
basically want to have a 4 week level 0 rotation, where after the 4th
week, the first week gets overwritten, etc, just like a tape would.

I created a directory on a usb drive like this:

/mnt/usb/dumps

I put this in my amanda.conf:

dumpcycle 4 weeks       # the number of days in the normal dump cycle
tapecycle 4 tapes       # the number of tapes in rotation

tapetype HARD-DISK              # what kind of tape it is (see tapetypes
labelstr "^FULL[0-9][0-9]*$"    # label constraint regex: all tapes must

tpchanger "chg-disk"

changerfile "/usr/local/etc/amanda/weekly/changer.conf"

define tapetype HARD-DISK {
         comment "Hard disk backup storage instead of tape"
         length 300000 mbytes
}

> Then in my changer.conf, this:


For chg-disk, you don't need a changer.conf.
The number of "tapes" is taken from the dumpcycle paramater.
And the "changerfile" parameter is the prefix of a set of
files.
Also, chg-disk needs a "tapedev" which points to the root
of a directory tree, containing "slotN" (N = 1... up-to-tapecycle)
subdirectories.

Alternatively, you can use chg-multi instead of chg-disk, and
have a detail changer.conf containing the layout of your
vtapes.

There is an example in the wiki.



multieject 0
gravity 0
needeject 0
ejectdelay 0

firstslot 1
lastslot 2

you probably mean "lastslot 4"


slot 1 file:/mnt/usb/dumps/FULL0
slot 2 file:/mnt/usb/dumps/FULL1
slot 3 file:/mnt/usb/dumps/FULL2
slot 4 file:/mnt/usb/dumps/FULL3


--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************

<Prev in Thread] Current Thread [Next in Thread>