Or you can do it with soft links. You just have one config file which
specifies /dev/amandatape as the backup device. Normally /dev/amandatape
does not exist, but your flush job does
rm /dev/amandatape
ln -s /dev/nst0 /dev/amandatape
...do stuff
rm /dev/amandatape
Regards,
Bob
On Wed, 16 Nov 2011, Robert Heller wrote:
At Wed, 16 Nov 2011 18:43:05 -0500 Greg Troxel <[email protected]> wrote:
Robert Heller <[email protected]> writes:
At Wed, 16 Nov 2011 17:38:36 -0500 Greg Troxel <[email protected]> wrote:
Matt <[email protected]> writes:
I'm trying to run the dump during the day and then send the backup
to Amazon at night when it won't disturb my bandwidth.
Long ago I did this by having two config files, one with /dev/missing as
the tape, or something like that, so all works well except that opening
the tape fails. Then the config is swapped back to use the tape.
You don't really have to 'swap' the config. Just call am<mumble> with
the other config -- eg:
During the day:
amdump whatever-notape ...
Then at night:
amflush whatever-amazontape
Sure, but they have to point to the same databases, and moving the
config seemed less scary that way than overlaid pointers. But I think
it works out to be the same.
'include' is your friend. The config files in
/etc/amanda/whatever-notape and /etc/amanda/whatever-amazontape,
include the config in /etc/amanda/whatever-common, which contains all
of the common configuration settings. They only differ in that
whatever-notape defines that tape device as /dev/missing (or something
like that) and whatever-amazontape defines the tape device as the
Amazon cloud tape.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (NetBSD)
iEYEARECAAYFAk7ESokACgkQ+vesoDJhHiXcVwCglmeLtgID5cBZhY0pWpv5Geo+
eS8Anjp9EqdcDQHmPCbhh0tFYsveYbZY
=5N8k
-----END PGP SIGNATURE-----
--
Robert Heller -- 978-544-6933 / [email protected]
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
<<
Email has been scanned for viruses by Altman Technologies' email management
service - www.altman.co.uk/emailsystems
>>
==============================================================
Bob Vickers [email protected]
Dept of Computer Science, Royal Holloway, University of London
WWW: http://www.cs.rhul.ac.uk/home/bobv
Phone: +44 1784 443691