[BackupPC-users] Avoid permission denied errors

2011-06-23 Thread Ibon Castilla
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi there:

I have been customizing the BackupPC installation and I use the method
recommended at
http://backuppc.sourceforge.net/faq/ssh.html#how_can_client_access_as_root_be_avoided

I think is cool to avoid using root for rsync (or whatever method you
use to backup). The problem is that if I use another user (other than
root to backup, for example backuppc user), I get a lot of permmision
denied at the log, refering this to files at for example in /etc.

Obviously backuppc hasn't enough permmision to copy those files, and I
was trying to figure it out how to authorize him. I have try to include
him at root group, but I get no luck :(

Anyone have any suggest about it?

Regards, Ibon.

- -- 
Servicios informáticos con Software Libre
http://www.unoycero.com/
Teléfono: 644 007 871
Correo electrónico: tecni...@unoycero.com
- --
GPG public key at http://www.sinanimodelucro.net/tecnicos_unoycero.asc
Fingerprint: 34AE B2F1 D943 D8C3 4DBE 1318 CC3E 35A9 A87C BB0E
- --
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4DGhoACgkQzD41qah8uw7yUwCeMuqlkIrJHTm4nxrxKXCEOqtJ
n7QAn1Aykqb45300euKZa9QYQIz99PBM
=B3KP
-END PGP SIGNATURE-

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] Backup to distant FTP Server

2011-06-23 Thread Arnaud Forster

Hello all,

I need to use backuppc with a distant FTP server as destination. So, I 
used curftpfs to mount my FTP connection to a local folder and choosed 
it as the root of my destination. This is working fine till the ftp 
serverc decide to stop the connection. As this time, backuppc cannot 
start anymore because it cannot very the hardlink between pc an cpool 
which is normal because my ftp is no mounted anymore. I dont know if 
there's a way to solve that because I'd like that the mount is made just 
before the backup starts and unmounted just after  as I'm a newbie 
in Linux and Backuppc, I'm requested your help.

Per advance, thanks very much
Arnaud





--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_dump works but Unable to read 4 bytes at wakeup

2011-06-23 Thread Les Mikesell
On 6/22/2011 9:03 PM, gregrwm wrote:
 oops, sorry, one had a filesystem that wasn't mounted, and the other
 was off, and no, they don't succeed to run backuppc_dump in that
 condition!

I'm surprised you didn't get a 'ping failed' error on the down machine 
that would have blocked the backup attempt.   The 'unable to read 4 
bytes' message is not very helpful but it means that rsync didn't start 
up or connect correctly for one reason or another.

-- 
   Les Mikesell
lesmikes...@gmail.com

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Backup to distant FTP Server

2011-06-23 Thread Jesse Callaway
On Thu, Jun 23, 2011 at 7:41 AM, Arnaud Forster
arnaud.fors...@mwprog.ch wrote:
 Hello all,

 I need to use backuppc with a distant FTP server as destination. So, I used
 curftpfs to mount my FTP connection to a local folder and choosed it as the
 root of my destination. This is working fine till the ftp serverc decide to
 stop the connection. As this time, backuppc cannot start anymore because it
 cannot very the hardlink between pc an cpool which is normal because my ftp
 is no mounted anymore. I dont know if there's a way to solve that because
 I'd like that the mount is made just before the backup starts and unmounted
 just after  as I'm a newbie in Linux and Backuppc, I'm requested your
 help.
 Per advance, thanks very much
 Arnaud






 --
 Simplify data backup and recovery for your virtual environment with vRanger.
 Installation's a snap, and flexible recovery options mean your data is safe,
 secure and there when you need it. Data protection magic?
 Nope - It's vRanger. Get your free trial download today.
 http://p.sf.net/sfu/quest-sfdev2dev
 ___
 BackupPC-users mailing list
 BackupPC-users@lists.sourceforge.net
 List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
 Wiki:    http://backuppc.wiki.sourceforge.net
 Project: http://backuppc.sourceforge.net/




Make a pre-backup script which checks that the ftp mount is up and
running. To my understanding this would be defined using
$Conf{DumpPreUserCmd} = '/bin/bash /usr/local/your_script.sh';  or
perl or whatever.

If you know any perl ruby or python then I suggest you leverage those
skills. Otherwise do a quick google for 'bash filetest'.

-jesse

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Backup to distant FTP Server

2011-06-23 Thread Les Mikesell
On 6/23/2011 6:41 AM, Arnaud Forster wrote:

 I need to use backuppc with a distant FTP server as destination. So, I
 used curftpfs to mount my FTP connection to a local folder and choosed
 it as the root of my destination. This is working fine till the ftp
 serverc decide to stop the connection. As this time, backuppc cannot
 start anymore because it cannot very the hardlink between pc an cpool
 which is normal because my ftp is no mounted anymore. I dont know if
 there's a way to solve that because I'd like that the mount is made just
 before the backup starts and unmounted just after  as I'm a newbie
 in Linux and Backuppc, I'm requested your help.

Are you saying you use a remote ftp based server as your backuppc 
archive storage?  I wouldn't expect that to work at all unless it 
supports hardlinks through the fuse interface - which doesn't seem possible.

In any case, linux distributions usually have an automounter that will 
mount filesystems on demand as they are accessed and unmount after a 
timeout. The setup probably varies with the distribution.

-- 
   Les Mikesell
lesmikes...@gmail.com


--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] wakeup command?

2011-06-23 Thread gregrwm
is there a command that triggers the equivalent of a wakeup?  normally i only 
want 1 wakeup per day, yet for special circumstances i often find myself 
editing in a wakeup a couple minutes hence and triggering a reload.

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] wakeup command?

2011-06-23 Thread Les Mikesell
On 6/23/2011 3:59 PM, gregrwm wrote:
 is there a command that triggers the equivalent of a wakeup?  normally i only 
 want 1 wakeup per day, yet for special circumstances i often find myself 
 editing in a wakeup a couple minutes hence and triggering a reload.

Normally you'd have moderately frequent wakeups where the actual 
scheduling of the runs is controlled by other settings (which are 
checked at each wakeup).  Is there some reason that is a problem?

-- 
   Les Mikesell
lesmikes...@gmail.com




--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_dump works but Unable to read 4 bytes at wakeup

2011-06-23 Thread gregrwm
some of my machines don't respond to ping, i replaced it with true in the
config.
--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Backup to distant FTP Server

2011-06-23 Thread Holger Parplies
Hi,

Les Mikesell wrote on 2011-06-23 14:20:57 -0500 [Re: [BackupPC-users] Backup to 
distant FTP Server]:
 On 6/23/2011 6:41 AM, Arnaud Forster wrote:
 
  I need to use backuppc with a distant FTP server as destination. So, I
  used curftpfs to mount my FTP connection to a local folder and choosed
  it as the root of my destination. [...]
 
 Are you saying you use a remote ftp based server as your backuppc 
 archive storage?  I wouldn't expect that to work at all unless it 
 supports hardlinks through the fuse interface - which doesn't seem possible.
 
 In any case, linux distributions usually have an automounter that will 
 mount filesystems on demand as they are accessed and unmount after a 
 timeout. [...]

... but only if they are unused!

That said, I believe $TopDir is the BackupPC daemon's working directory (hmm,
no, that doesn't seem to be true, but it usually has a log files opened under
$TopDir/log, though the location may be changed). In any case, BackupPC doesn't
really handle $TopDir disappearing too well, so you're bound to get into
trouble if it does (actually, I'd consider it a bug if anything emulating a
*file system* through FTP would not transparently reconnect if the server
disconnects - such a severe bug, in fact, that I'd consider the software
experimental at best and avoid it for any serious work).

In any case, you should verify your assumption that this is working fine.
* Are your link counts accurate, i.e. does pooling work, or do you in fact
  have N+1 independant copies of each file that should be pooled?
* I'd expect BackupPC to be *extremely slow* on an FTP-based pool. What might
  seem to work on an empty pool with a small test backup set will almost
  certainly degrade over time with a growing pool and hash collisions.
  BackupPC is optimized for fast pool access and potentially slow client
  access, not the other way around.

Why are you using an FTP server as destination? How distant is it (i.e. how
fast or slow is the link)? What amount of data are you planning to back up?
What are you trying to protect against?

Chances are BackupPC is not the right tool for the task you have in mind, or
at least isn't being used in the correct way.

Hope that helps.

Regards,
Holger

--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] wakeup command?

2011-06-23 Thread Holger Parplies
Hi,

Les Mikesell wrote on 2011-06-23 16:19:52 -0500 [Re: [BackupPC-users] wakeup 
command?]:
 On 6/23/2011 3:59 PM, gregrwm wrote:
  is there a command that triggers the equivalent of a wakeup?  normally i
  only want 1 wakeup per day, yet for special circumstances i often find
  myself editing in a wakeup a couple minutes hence and triggering a reload.
 
 Normally you'd have moderately frequent wakeups where the actual 
 scheduling of the runs is controlled by other settings (which are 
 checked at each wakeup).  Is there some reason that is a problem?

there might be, depending on what you abuse your PingCmd etc. for ;-). And you
might want to allow the disk to spin down if it is unused most of the day.
This is also the most effective way to enforce a global blackout. If you
*never* want automatic backups to run during a particular part of the day,
there is no point in scheduling wakeups.

However, I find two or three wakeups more useful than just one. If that one
wakeup is missed (because IncrPeriod is a few minutes too long), you don't get
a backup that day (with only one wakeup). Also, BackupPC_nightly is run on the
first wakeup (i.e. first entry in $Conf{WakeupSchedule}, whatever time that
is), and I don't want that running in parallel with backups.

In any case, no there is no command that triggers the equivalent of a wakeup,
but the part you are probably interested in - running backups which are due -
can be triggered with

BackupPC_serverMesg backup all

If it's the nightly cleanup you're interested in, that would be

BackupPC_serverMesg BackupPC_nightly run

In any case, BackupPC_serverMesg needs to be run as the backuppc user.
 
Regards,
Holger

--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/