Re: Recovering Metadata from Tape?
Yes, I think for the sake of simplicity I'm going to do just that - rsync the necessary files to another machine. Thanks for the help! On Tue, Aug 23, 2011 at 8:18 AM, McGraw, Robert P rmcg...@purdue.eduwrote: Have you considered doing an rsync of your amanda home directory and /var/amanda directories to another disk on another machine. ** ** You could set this up to run after you back is complete. ** ** ** ** ** ** *From:* owner-amanda-us...@amanda.org [mailto: owner-amanda-us...@amanda.org] *On Behalf Of *Alden Timme *Sent:* Monday, August 22, 2011 2:59 PM *To:* amanda-users@amanda.org *Subject:* Re: Recovering Metadata from Tape? ** ** Great! Thanks for the responses - sorry I didn't see the archived conversations. ** ** Alden 2011/8/22 gene heskett ghesk...@wdtv.com On Monday, August 22, 2011 02:22:01 PM Alden Timme did opine: Hi all, I am using a tape library to do my Amanda backups, but I have run into one issue - restoring my Amanda system in the case that my Amanda server goes down. Even if I have my amanda.conf file, there is a lot of metadata I need to be able to run a successful amrestore or amrecover. My questions are (1) What files do I need exactly? (2) How do I retrieve/recover all of those files from the tapes themselves? For (1), I think I need at least * $CONFIGDIR/$config/amanda.conf * $CONFIGDIR/$config/tapelist * $PREFIX/var/amanda/chg-robot-dev-sg4 (file that holds my current tape changer's status) * infofile * indexdir but for (2) I don't know how to recover all those files. I have been able to do a little bit of the retrieval/recovery with amtape update, but that doesn't get me everything I need to use amrestore/amrecover effectively. I've looked around a lot in the forums/archives/how-tos but haven't found an answer for this question - which I assume is a fairly common issue. Apologies if I simply haven't found the documentation - in that case a link would be sufficient :) Thanks in advance! Alden This is one of those 'bare metal' questions, and there have been 2 or 3 offerings in that regard, I rather like my own solution to that problem. It is a wrapper script that depends on your having a tape descriptor with a 500 meg and up, cushion so that amanda will never fill the tape, but will leave a bit of room for the wrapper scripts files. The wrapper script adds to the end of the tape, a tarball of the current configuration tree, and a tarball of the database tree. It looks something like this on a vtape: [root@coyote gene]# ls -l /amandatapes/Dailys/slot20 total 27352256 -rw--- 1 amanda amanda 32768 Aug 22 00:50 0.Dailys-20 -rw--- 1 amanda amanda 25698360714 Aug 22 01:05 1.coyote._home.0 [... long dle list of files] -rw--- 1 amanda amanda 856391680 Aug 22 01:16 00040.coyote._usr_share.0 -rw-r--r-- 1 amanda amanda 102400 Aug 22 02:53 configuration.tar -rw-r--r-- 1 amanda amanda 193904640 Aug 22 02:53 indices.tar The version available isn't exactly the latest, but a good scripter can adjust to suit. Google for GenesAmandaHelper-0.6. I probably need to repack it and put in on my web page. I will freely admit its a poor bash hack, but I have been using it here for several years now. I have assumed that disaster recovery is a new install and that you've enough tools available in that install to recover from the tape directly, dd, tar and gzip cover that. Assume then that you use these tools to recover the indices.tar and place its contents where they now reside, as step one. Step 2 would be to recover, again using dd and tar, the configuration.tar file and put it where it resided before the crash. Step 3 then is to recover the user tree where amanda was built and installed from, in my case the /home tree since I build and install amanda as the user amanda. You will need to adduser, and groupadd, the user who ran amanda, unpack these files to tmp and do as root, a chown -R on those two trees in /tmp before the wholesale copying is done. In my case I would cd to /home/amanda/amanda-version and do a make install. At that point, mkdir your holding disk area and chown it so amanda can use it. You should then have an amanda install that passes an amcheck $configname, as that amanda user, or get errors telling you what is missing yet. Once that's done, amrecover should let you recover the rest of your data. I have done that several times here there has always been something I forget since at my years I really don't remember some of the details. But this really does help me... Cheers, gene -- There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) Being a BALD HERO is almost as FESTIVE as a TATTOOED KNOCKWURST. ** **
Recovering Metadata from Tape?
Hi all, I am using a tape library to do my Amanda backups, but I have run into one issue - restoring my Amanda system in the case that my Amanda server goes down. Even if I have my amanda.conf file, there is a lot of metadata I need to be able to run a successful amrestore or amrecover. My questions are (1) What files do I need exactly? (2) How do I retrieve/recover all of those files from the tapes themselves? For (1), I think I need at least * $CONFIGDIR/$config/amanda.conf * $CONFIGDIR/$config/tapelist * $PREFIX/var/amanda/chg-robot-dev-sg4 (file that holds my current tape changer's status) * infofile * indexdir but for (2) I don't know how to recover all those files. I have been able to do a little bit of the retrieval/recovery with amtape update, but that doesn't get me everything I need to use amrestore/amrecover effectively. I've looked around a lot in the forums/archives/how-tos but haven't found an answer for this question - which I assume is a fairly common issue. Apologies if I simply haven't found the documentation - in that case a link would be sufficient :) Thanks in advance! Alden
Re: Recovering Metadata from Tape?
Great! Thanks for the responses - sorry I didn't see the archived conversations. Alden 2011/8/22 gene heskett ghesk...@wdtv.com On Monday, August 22, 2011 02:22:01 PM Alden Timme did opine: Hi all, I am using a tape library to do my Amanda backups, but I have run into one issue - restoring my Amanda system in the case that my Amanda server goes down. Even if I have my amanda.conf file, there is a lot of metadata I need to be able to run a successful amrestore or amrecover. My questions are (1) What files do I need exactly? (2) How do I retrieve/recover all of those files from the tapes themselves? For (1), I think I need at least * $CONFIGDIR/$config/amanda.conf * $CONFIGDIR/$config/tapelist * $PREFIX/var/amanda/chg-robot-dev-sg4 (file that holds my current tape changer's status) * infofile * indexdir but for (2) I don't know how to recover all those files. I have been able to do a little bit of the retrieval/recovery with amtape update, but that doesn't get me everything I need to use amrestore/amrecover effectively. I've looked around a lot in the forums/archives/how-tos but haven't found an answer for this question - which I assume is a fairly common issue. Apologies if I simply haven't found the documentation - in that case a link would be sufficient :) Thanks in advance! Alden This is one of those 'bare metal' questions, and there have been 2 or 3 offerings in that regard, I rather like my own solution to that problem. It is a wrapper script that depends on your having a tape descriptor with a 500 meg and up, cushion so that amanda will never fill the tape, but will leave a bit of room for the wrapper scripts files. The wrapper script adds to the end of the tape, a tarball of the current configuration tree, and a tarball of the database tree. It looks something like this on a vtape: [root@coyote gene]# ls -l /amandatapes/Dailys/slot20 total 27352256 -rw--- 1 amanda amanda 32768 Aug 22 00:50 0.Dailys-20 -rw--- 1 amanda amanda 25698360714 Aug 22 01:05 1.coyote._home.0 [... long dle list of files] -rw--- 1 amanda amanda 856391680 Aug 22 01:16 00040.coyote._usr_share.0 -rw-r--r-- 1 amanda amanda 102400 Aug 22 02:53 configuration.tar -rw-r--r-- 1 amanda amanda 193904640 Aug 22 02:53 indices.tar The version available isn't exactly the latest, but a good scripter can adjust to suit. Google for GenesAmandaHelper-0.6. I probably need to repack it and put in on my web page. I will freely admit its a poor bash hack, but I have been using it here for several years now. I have assumed that disaster recovery is a new install and that you've enough tools available in that install to recover from the tape directly, dd, tar and gzip cover that. Assume then that you use these tools to recover the indices.tar and place its contents where they now reside, as step one. Step 2 would be to recover, again using dd and tar, the configuration.tar file and put it where it resided before the crash. Step 3 then is to recover the user tree where amanda was built and installed from, in my case the /home tree since I build and install amanda as the user amanda. You will need to adduser, and groupadd, the user who ran amanda, unpack these files to tmp and do as root, a chown -R on those two trees in /tmp before the wholesale copying is done. In my case I would cd to /home/amanda/amanda-version and do a make install. At that point, mkdir your holding disk area and chown it so amanda can use it. You should then have an amanda install that passes an amcheck $configname, as that amanda user, or get errors telling you what is missing yet. Once that's done, amrecover should let you recover the rest of your data. I have done that several times here there has always been something I forget since at my years I really don't remember some of the details. But this really does help me... Cheers, gene -- There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) Being a BALD HERO is almost as FESTIVE as a TATTOOED KNOCKWURST.
Zmanda Windows Client with dumpuser other than amandabackup
I have an Ubuntu server with the native Amanda package installed (via apt-get install amanda-common and amanda-server) - Amanda 2.6.1p1. This creates the Amanda backup user backup in the group backup. However, I need to back up a Windows client, so I have the Zmanda Windows Client installed (version 3.1.3), which uses the user amandabackup. When I run sudo -u backup amcheck MyConfig I get the following error: ERROR: amanda-client-xp: Unauthenticated user where amanda-client-xp is the Windows client (defined in /etc/hosts). When I create a user amandabackup in group disk on the server, change permissions for all relevant directories and executables to be owned by amandabackup, and change the dumpuser in my amanda.conf to amandabackup it all works. However, that causes a problem, because I want to be able to automate the creation of an Amanda server and do not want to have to change users and permissions, etc. Bottom line: Do I need the Amanda user on the server to be the same as the Amanda user on the Zmanda Windows Client (i.e. amandabackup)? I have the line client_username amandabackup in my amanda.conf, but that does not seem to help at all. I would appreciate any help!
Re: Zmanda Windows Client with dumpuser other than amandabackup
Thank you Paddy! I actually saw that page before, but it still does not make sense to me why the server user and client user have to have the same name. Is there really no other way for the backup to work? I.e. something like being able to set client_username as you can with rsh or ssh authentication? Thanks, Alden On Thu, Jul 21, 2011 at 1:52 PM, Paddy Sreenivasan pa...@zmanda.com wrote: Please see http://wiki.zmanda.com/index.php/Zmanda_Windows_Client#Running_ZWC_as_some_other_user thanks Paddy
Re: Zmanda Windows Client with dumpuser other than amandabackup
OK I guess it is what it is... Maybe a patch will come out at some point. Thanks for the responses, though. On Thu, Jul 21, 2011 at 3:20 PM, Chris Nighswonger cnighswon...@foundations.edu wrote: Hi Alden, On Thu, Jul 21, 2011 at 5:25 PM, Alden Timme alden.ti...@gmail.comwrote: Is there really no other way for the backup to work? I.e. something like being able to set client_username as you can with rsh or ssh authentication? The truth of the matter is that ZWC is a proprietary product which is close sourced. Thus as long as the code owner elects not to invest the time to add the ability to set the username at install time or in a config file, we are stuck with the registry hack mentioned in the wiki. This is another case-in-point for open source code. Kind Regards, Chris