BackupPC-users

Re: [BackupPC-users] Got fatal error during xfer after 20 MiB (tar on localhost)

2014-03-14 07:39:03
Subject: Re: [BackupPC-users] Got fatal error during xfer after 20 MiB (tar on localhost)
From: "Jost Schenck" <jost.schenck AT gmx DOT de>
To: "Jurie Botha" <jurieb AT taprojects.co DOT za>
Date: Fri, 14 Mar 2014 12:37:00 +0100
Hi,
 
thanks for your tips, I will definitely think about this. My problem has been solved by Holger's tip, I accidentally answered by private mail only.
 
I guess you're right that backing up the backup servers system config with backuppc itself may not be such a brilliant idea :) What I thought was, that in case my home server fails I could restore configuration by first installing a new linux with backuppc and then pointing backuppc to my backup disc. But your idea sounds easier. Thanks!
 
Jost
Gesendet: Donnerstag, 13. März 2014 um 10:36 Uhr
Von: "Jurie Botha" <jurieb AT taprojects.co DOT za>
An: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Cc: "Jost Schenck" <jost.schenck AT gmx DOT de>
Betreff: Re: [BackupPC-users] Got fatal error during xfer after 20 MiB (tar on localhost)
Hi Josh,

Why not just export your local folders that need to be backed up via rsync daemon? Much easier in the long run.

Also I presume you are backing up /etc to back up the system config, bad idea to do that to backuppc if you are doing it for DR purposes. rather have a cronjob (rsync :)) backup your system config, that way if your backup server fails - you can simply re-install & restore config & backup pool.
--
 
 
Jurie Botha 

Senior IT Support Engineer | Trans-Africa Projects (Pty) Ltd

Tel: +27 11 205 9467 | Mobile: +27 83 225 1819 | Email: jurieb AT taprojects.co DOT za

 
-----Original Message-----
From: Holger Parplies <wbppc AT parplies DOT de>
Reply-to: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
To: Jost Schenck <jost.schenck AT gmx DOT de>
Subject: Re: [BackupPC-users] Got fatal error during xfer after 20 MiB (tar on localhost)
Date: Wed, 12 Mar 2014 20:59:36 +0100
 
Hi,

Jost Schenck wrote on 2014-03-11 19:39:21 +0100 [Re: [BackupPC-users] Got fatal error during xfer after 20 MiB (tar on localhost)]:
> I probably should add:

right, but you prepend instead.

Earlier on, Jost Schenck had written:
> > Hi,
> >
> > I set up backuppc in my small home network. It works fine now backing up my 
> > work linux PC over ssh/rsync. However, trying to backup /etc on localhost 
> > over tar, I get an error after most of /etc (but not all) has been backed up:
> > [...]
> > Got fatal error during xfer (Gesamtzahl geschriebener Bytes: 20613120 (20MiB, 2,1MiB/s))

yes, you translated it for us, but who is supposed to translate it to
BackupPC? As far as BackupPC is concerned, some unexpected message is an
error.

Are you sure that not all of /etc has, in fact, been backed up? You get a
"partial" backup due to the "error", but I would expect the backup to
contain all files.

> > Tar over sudo is configured using visudo as explained in the documentation. 
> > I have no idea why this fails. Can you help me?

I generally think that setting up a *nix system with a default language !=
English is a bad idea. Language is a user preference, not a system preference
(yes, you might want your DM to greet your users in a different language, and
*all* of your users might prefer a single different language, but still the
*system* should remain comprehensible). Just a few minutes ago, I read a
system error message "Speicherzugriffsfehler" on a different mailing list.
Now, was that originally a "bus error" or a "segmentation fault"? I'm sure I
can find out, but the point is: I need to translate it back to the original to
understand it, and I wouldn't be in the least surprised if the same is true
for almost anyone else who actually understands the difference.

Since your system language seems to disagree with BackupPC's requirements,
you'll have to fix things for BackupPC - add an 'env LANG=C' command in an
appropriate place in your backup command. Strictly speaking, you don't need
root privileges to change the environment for a child process, so it would be
something like

	env LANG=C sudo ... tar ...

but then, sudo does have a habit of filtering the environment, so you might
need to explicitly whitelist the LANG variable (see sudoers(5)).

On the other hand, if you use

	sudo ... env LANG=C tar ...

you'll need to allow the 'env' command in sudoers. Unless you narrow that down
by including the starting parameters at least upto the 'tar', you'll be
allowing arbitrary commands, which you don't want to do.

Actually, the sudo(8) man page suggests that you can also use

	sudo ... LANG=C tar ...

(my experimentation agrees). The same notes as for the "env sudo tar" case
apply.

Hope that helps.

Regards,
Holger

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
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/
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
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/