BackupPC-users

Re: [BackupPC-users] Importing a former installation

2010-06-28 18:32:31
Subject: Re: [BackupPC-users] Importing a former installation
From: Les Mikesell <lesmikesell AT gmail DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Mon, 28 Jun 2010 17:30:55 -0500
On 6/28/2010 5:03 PM, Luis Paulo wrote:
> On Mon, Jun 28, 2010 at 10:29 PM, ChromeSilver<chromesilver AT gmx DOT net>  
> wrote:
>> Hi Folks,
>>
>> I got a little problem. I got a new job within a new firm which is the
>> legal successor of another firm. This old firm is already terminated and
>> all we got left from the IT infrastructure is a dd image of the
>> BackupPC-Server. I reconstructed it into a harddisk on our new
>> backup-server which will use BackupPC as the backup solution of choice.
>> We want to keep the old backup data and add our new infrastructure to it.
>>
>> What I did that far is:
>>
>> 1. Set up Ubuntu 10.04 lts server and installed BackupPC. Works.
>>
>> 2. Restored the dd image on a brand new 2 TB harddisk. The process
>> finished and gave me a harddisk with obviously the data structure the
>> original machine had. It does not boot since the underlying hardware
>> does not match the specs of the old OS (CentOS 5.1.)
>>
>> 3. Created symbolic links in the BackupPC working directory
>> (/var/lib/backuppc/) pointing to the corresponding directories on the
>> new 2TB harddisk partition.

You probably want one symlink at /var/lib/backuppc pointing to the 
corresponding place on the data drive.  Or if this is going to be the 
new archive filesystem you could delete the other top level stuff, mv 
the directories under the old /var/lib/backuppc location up to the root 
of the filesystem, then mount it at /var/lib/backuppc.

>>
>> 4. Changed ownership of the old BackupPC-directories on the new 2TB
>> harddisk to match the new Ubuntu installation (backuppc:backuppc)
>> recursively so that BackupPC has all the rights it needs.
>>
>> 5. Restarted BackupPC. Came up properly.
>>
>> Doing so I hoped that BackupPC would recognize its former data and
>> import it, so I can rebuild the old backups into new virtual machines,
>> so our developers are able to access the data they need via CVS. But it
>> didn't work. The BackupPC web interface doesn't show up any of the old
>> machines. So I can't rebuild them.
>>
>> Is there anyone out there who would help me solve my problem?
>>
>> I tried several other ways like rebuilding the original dd image into a
>> VirtualBox image and booting that, but this didn't work because the old
>> Admin messed up the system so that BackupPC doesn't start in it because
>> of user rights problems (the interface starts as the apache user and
>> thus will not connect to the BackupPC-server). Since our bosses want to
>> keep BackupPC as the companies' backup strategy the import solution this
>> is no longer a solution, too.
>
>
> I suppose you have copy the old hosts and<computer>.pl files to /etc/backuppc/
>
> The thing that comes to my mind is that my backuppc (version 3.0.0)
> didn't like symlinks. Don't know if it works ok on the newer versions,
> but for me it only works mounting the pool partition at
> /var/lib/backuppc/ instead of linking to it.
>
> You may also check pool directories ownership. If you change the
> system, backuppc user and group may have change uid and/or gid

The httpd config should be the only thing that doesn't like symlinks - 
make sure the 'Options' directive covering the relevant 
location/directory includes symlinks.

-- 
   Les Mikesell
    lesmikesell AT gmail DOT com



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

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