BackupPC-users

Re: [BackupPC-users] Restores only directories and not directory content

2012-11-14 16:43:42
Subject: Re: [BackupPC-users] Restores only directories and not directory content
From: Bowie Bailey <Bowie_Bailey AT BUC DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Wed, 14 Nov 2012 16:42:33 -0500
On 11/14/2012 4:19 PM, Gary Roach wrote:
> On 11/14/2012 12:00 PM, Les Mikesell wrote:
>> On Wed, Nov 14, 2012 at 12:53 PM, Gary Roach<gary719_list1 AT verizon DOT 
>> net>  wrote:
>>     
>>> Well it finally happened. I got home from vacation, fired up the systems
>>> and one of the hard drives was trashed. Two days of recovery attempts
>>> didn't work so I reformatted and reinstalled the Debian Squeeze system.
>>> I re-established the rsyncd connection to the backup system and started
>>> a restore from the GUI. The next morning I found all of the proper
>>> directory structure installed but no data in the directories. I then
>>> tried to create a tar file. The file created held only the directory
>>> strucure. The data is all there in a full backup of the system. I can
>>> even open the files on the backup disk. Anyone know what could cause
>>> this problem. I found one other person that had this problem and solved
>>> it by switching off the proxy service in the browser. This didn't work
>>> form me.
>>>       
>> I can't think of anything that would cause a problem like that, but
>> can you make a tar image with the BackupPC_tarCreate command line tool
>> on the server and restore that on the client machine?
>>
>>     
> Thanks for the reply Les
>
> I tried to try BackupPC_tarCreate and gave up. First the file wouldn't
> run until I appended ./ in front, not obvious to me at least. Then I got
> the following:
>
>       BackupPC_tarCreate -n 169 -h <the backup computer with the data> -s
> / > target.tar
>       This returned - Wrong user: my userid is 0, instead of 112 (backuppc)
>       Please su backuppc first.

Simple error ... the error message even told you how to fix it.

>       su backuppc
>       $
>       $BackupPC_tarCreate -n 169 -h <the backup computer with the data>
> -s / > target.tar
>       sh: 2:can not crate target.tar: Permission Denied.
>       sh:2:BackupPC_tarCreate: not found.

Basic *nix permissions issue.  You switched to user backuppc, but you 
are trying to write to a directory that backuppc does not have 
permissions for (since you started as root, I'm guessing you are still 
in root's home directory).  Try doing "cd ~backuppc" and then running 
the command again.  This will move you to backuppc's home directory 
where you will (presumably) have permission to create a file.

> At this point I quit in disgust.

Don't give up so fast.  You're almost there.

-- 
Bowie

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
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/