Amanda-Users

Re: Dumps cannot be retrieved from tape...

2008-09-23 13:42:26
Subject: Re: Dumps cannot be retrieved from tape...
From: Chris Hoogendyk <hoogendyk AT bio.umass DOT edu>
To: Dan Brown <monkeypants AT shaw DOT ca>
Date: Tue, 23 Sep 2008 12:36:32 -0400


Dan Brown wrote:
Hi,

I've got a backup set for a bunch of Mac OS X users who are backed up on a daily basis via Samba shares. Backups are first backed up to holding disk, then dumped to tape once I've got enough to fill an LTO3 tape. The other day I was asked to restore a file which had ended up going on to tape (just a day or two ago).

I came to realize that all backups which have been flushed to tape, are no longer accessible via amrecover. Backups which are still on the holding disk can be accessed. This appears to be a samba share backup specific problem as a near identical setup with a number of Linux servers (although using the server client) does not have this problem. There was one samba share backup in that profile up until a month or so ago but I've never had to restore anything for it. I know it's there because the index exists for it but the index->tape association
doesn't appear to have occured.

So I've got two questions:
1. How do I fix my config (I assume it's a config problem) so that files can be retrieved from tape for this profile
(otherwise I might as well set my tape device to be /dev/null)?

2. How do I retrieve my file off of tape not using amrecover?


First, it should work. amrecover should get things off the holding disk or off tape as appropriate. When you say "came to realize", I think we need some more detail on what you mean by that. What errors did you get? How did you try? Did you use setdate to get the file you wanted from a particular backup? Did you try "history" in amrecover to see what it thought you had after you had sethost and setdisk? Did you sethost to where the samba share was mounted and backed up from? As opposed to the machine it originated on?

When you say "dumped to tape", I assume you mean flushed? i.e. `amflush daily`?

If you look at the tape directly using OS utilities, the first file on the tape tells you what to do. There are detailed descriptions of various approaches to reading the tapes here: http://wiki.zmanda.com/index.php/Restoring_files, and if you scan down that page looking for dd, you will find how to do it without any Amanda tools.

If you need help with your configuration, you will have to post it.


---------------

Chris Hoogendyk

-
  O__  ---- Systems Administrator
 c/ /'_ --- Biology & Geology Departments
(*) \(*) -- 140 Morrill Science Center
~~~~~~~~~~ - University of Massachusetts, Amherst
<hoogendyk AT bio.umass DOT edu>

---------------
Erdös 4