BackupPC-users

Re: [BackupPC-users] Problems to backup linux network computer

2009-12-03 14:03:07
Subject: Re: [BackupPC-users] Problems to backup linux network computer
From: "Jose Torres" <jetorres AT conecodepr DOT com>
To: "'General list for user discussion, questions and support'" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 3 Dec 2009 14:59:33 -0400
This is the default backuppc tar command: 
$sshPath -q -x -n -l root $host env LC_ALL=C $tarPath -c -v -f - -C
$shareName+ --totals

I had this:
usr/bin/sudo $tarPath -c -v -f - -C $shareName --totals

I change it as the KBA referred on previous post.

Now I see the problem.  

I was missing that the $shareName parameter needed to be change to a NFS
mount from the network computer to be backup (serverv2v2) corresponding to
the remote '/' mount on the backuppc server (server2).  This way the changed
tar command would have backup the correct data instead of the local '/'.
The mount had to be made with the root credentials so as to have read all
access, and mapped to the backuppc user to inherit the read all access on
the backup server.  The mount could be done a permanent mount or can be made
DumpPreShareCmd/DumpPostShareCmd so as make and remove the mount during
backup. 

Another way to solve it is to make the tar command back at default
(more/less):
$sshPath -q -x -n -l root $host env LC_ALL=C $tarPath -c -v -f - -C
$shareName --totals

I did this and it worked fine now. The thing will be that we need to use ssh
with root user which can become a security breach.



-----Original Message-----
From: Les Mikesell [mailto:lesmikesell AT gmail DOT com] 
Sent: Thursday, December 03, 2009 2:23 PM
To: General list for user discussion, questions and support
Subject: Re: [BackupPC-users] Problems to backup linux network computer

Richard Shaw wrote:
> On Thu, Dec 3, 2009 at 11:39 AM, Les Mikesell <lesmikesell AT gmail DOT com>
wrote:
>> Jose Torres wrote:
>>> I followed this KBA for ubuntu/backuppc installation and configuration:
>>>
>>> https://help.ubuntu.com/community/BackupPC
>>>
>>> The default config.pl tar command does not include the network computer
>>> either. The KBA suggested change takes care of the sudo mode of Ubuntu
root
>>> required commands, does not change much.
>>>
>>> So should I conclude that I must use rsync mode instead of tar mode to
do
>>> network backups?
>> No, tar would work remotely, although rsync has advantages.  But sudo is
>> not a network command and is not going to run anything remotely.
>> Whatever instructions you are following must be limited to the local
>> machine and should only appear in that machine's configuration (whether
>> you are editing the .pl file directly or using the web interface).
> 
> I know you could use ssh to run the tar command on the remote machine
> but I don't know how you would get the output of tar (the data) back
> to the backup server.

Ssh works as a pipe - anything written to stdout on the remote side can 
be read through ssh just like a local pipe.  The default tar and rsync 
commands configured in backuppc use this feature correctly.  They should 
be listed in the documentation at 
http://backuppc.sourceforge.net/faq/BackupPC.html#configuration_file in 
case you've forgotten what you changed.

> Since Ubuntu does not have root accounts you may have to use this[1]
method.
> 
> Richard
> 
> [1]
http://backuppc.sourceforge.net/faq/ssh.html#how_can_client_access_as_root_b
e_avoided

Ubuntu has a root account (as anything resembling unix must).  It just 
doesn't have a password assigned by default - and you don't need one for 
key-pair based ssh access.

-- 
   Les Mikesell
    lesmikesell AT gmail DOT com



----------------------------------------------------------------------------
--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
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/


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
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>