Re: [BackupPC-users] Change Archive Directory

2009-06-08 Thread Filipe Brandenburger
Hi,

On Wed, Jun 3, 2009 at 22:25, jbk wrote:
> [...] What I am
>  not seeing is any pooled data. I am using the Fedora
> distribution (10) binary of Backuppc. When I originally set
> up the archive directory I pointed it to an external usb
> disk that is mounted in a location that is not in the
> original "topdir" path.

BackupPC-3.1.0-4.fc10 has a patch that fixes this exact issue.

>From the changelog:

* Sat Apr 11 2009 Johan Cwiklinski  3.1.0-4
  - Fix TopDir change (bug #473944)

If you upgrade, you might not need to change mountpoints or use bind
mounts, your configuration file might start working as supposed to
then.

HTH,
Filipe

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] Change Archive Directory

2009-06-09 Thread Filipe Brandenburger
Hi,

On Tue, Jun 9, 2009 at 06:44, Holger Parplies wrote:
> yes, but however you fix it, you should be aware that you won't get pooling
> for already completed backups. Until they expire, they will contain
> independent copies of files. What's worse, rsync backups will hardlink 'same'
> files to the reference backup file (which will be outside the pool as long as
> it remains unchanged).

Can you use a script such as hardlink.py to create hardlinks out of
identical files in the BackupPC repository? Would that fix that issue
without the need to start over?

http://code.google.com/p/hardlinkpy/

Cheers,
Filipe

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] Backing up a USB-disk?

2009-06-10 Thread Filipe Brandenburger
Hi,

On Wed, Jun 10, 2009 at 17:57, Holger Parplies wrote:
> note that you could even set the PingCmd to a shell script that checks
> whether the disk is mounted (eg. '[ -f /path/to/usbdisk/.thisistheusbdisk ]'
> if you have a file '.thisistheusbdisk' in the root of your USB disk's file
> system - please ask if you need more details).

You can use the "mountpoint" command (present in RHEL 5 or SuSE 10) to
test if that path is a mount point for some volume.

mountpoint -q /path/to/usbdisk
(will set $? to 0 if it's mounted, non-zero otherwise)

No need to create .thisistheusbdisk files inside your USB then.

HTH,
Filipe

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] Backing up a USB-disk?

2009-06-11 Thread Filipe Brandenburger
Hi,

On Thu, Jun 11, 2009 at 01:50, Magnus Larsson wrote:
>> mountpoint -q /path/to/usbdisk
>> (will set $? to 0 if it's mounted, non-zero otherwise)
>
> How would I use this value that mountpoint returns, do you mean?

The same way you would use the '[ -f
/path/to/usbdisk/.fileyouwouldhavetocreate ]', but without creating
the file...

I'm not really an expert on BackupPC (I only used the basic features
so far), but I believe you would use that as a script for PingCmd or
maybe DumpPreUserCmd and maybe together with UserCmdCheckStatus (see
Jeffrey's previous e-mail). I guess they could give you some more help
on how to configure this than I could...

HTH,
Filipe

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] include directive in config.pl

2009-06-11 Thread Filipe Brandenburger
Hi,

On Thu, Jun 11, 2009 at 13:20, Matthias Meyer wrote:
> I hoped the necessary code would be simple enough and somebody would be so
> nice to post it here.

Something like this should work:

# define the list of junctions for Vista in English:
@VistaJunctions_english = ( "/dir1", "/dir2", "/dir3" );

# define the list of junctions for Vista in German:
@VistaJunctions_german = ( "/verzeichnis_eins", "/verzeichnis_zwei",
"/verzeichnis_drei" );

# And then join it all!
$Conf{BackupFilesExclude} = {
 'WINDOWS' => [
   '/Downloaded Program Files',
   '/Offline Web Pages',
   '/Temp',
   '/proc',
   '/System32/LogFiles/WMI/RtBackup'
 ],
 '*' => [
   'pagefile.sys',
   'hiberfil.sys',
   '/System Volume Information',
   '/RECYCLER',
   '/$Recycle.Bin',
   '/$RECYCLE.BIN',
   '/MSOCache',
   '/proc',
   '/Windows',
   @VistaJunctions_english,
   @VistaJunctions_german
 ]
};


Is this what you are looking for?

If you want to source the definitions of @VistaJunctions_english and
@VistaJunctions_german from another file, you can use this command at
the start of the .pl file:

require "/path/to/junction_definitions.pl";


HTH,
Filipe

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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 only new file(s)

2009-06-11 Thread Filipe Brandenburger
Hi,

On Thu, Jun 11, 2009 at 14:13, Les Mikesell wrote:
> Mirco Piccin wrote:
>> Anyway, each daily file is quite similar to the each other, so rsync
>> (or custom script) should be the better way to to the job.
>
> That won't help unless each file is named the same as the previous one.

You can try to use the "-y" or "--fuzzy" option to rsync (at least
rsync 3) to implement this.

Quoting from the man page: "-y, --fuzzy: This option tells rsync that
it should look for a basis file for any destination file that  is
missing. The current algorithm looks in the same directory as the
destination file for either a file that has an identical size and
modified-time, or a similarly-named file. If found, rsync uses the
fuzzy basis file to try to speed up the transfer."

HTH,
Filipe

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] problems with linux host - Unable to read 4 bytes

2009-06-25 Thread Filipe Brandenburger
Hi,

On Wed, Jun 24, 2009 at 09:46, Nick Smith wrote:
> From the backuppc server to the client1 it logs in without a password.

Good, a backup of this client should work just fine.

> From the backuppc server to the client2 it asks for a password.

Problem: you must add the SSH key of the backuppc user
(/var/lib/backuppc/.ssh/id_dsa.pub or id_rsa.pub in the BackupPC
server) to the authorized keys file of the root user
(/root/.ssh/authorized_keys or the deprecated authorized_keys2) on
client2.

> From the client1 to the backuppc server it asks for a password

If it worked with "sudo -u backuppc" then it is wrong in that client1
should not have a "backuppc" user. Remove it.

> >From the client2 to the backuppc server i get this error:
> # sudo -u backuppc ssh -p 22252 r...@backup-server
> sudo: no passwd entry for backuppc!

Good, that is what is expected.

> Which is where i tried to add the backuppc user to the client machine
> to see if that was the problem.

Wrong. Remove it.

> If i understand correctly the client is acting as the ssh server?

Yes.

HTH,
Filipe

--
___
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] Having Several Issues

2009-06-26 Thread Filipe Brandenburger
Hi,

On Fri, Jun 26, 2009 at 13:07, Les Mikesell wrote:
> Admiral Beotch wrote:
>>     What I'm wondering is, if you had mounted your drive on
>>     /var/lib/backuppc before the yum install (or had set it up during the
>>     Centos install) would any of the other steps have been necessary?
>>
>> I'm going to guess that the chcon would still have been necessary
>> because the default SELinux policy probably does not expect httpd_t to
>> have so much access to a file system. But we'll give it a shot.
>
> If it doesn't, you should report it to the packager.  RPMs are supposed
> to set that stuff up so it works.  I normally disable SELinux to avoid
> surprises anyway though, but most of my boxes are pretty well firewalled.

I thought I would give some feedback here...

I am running BackupPC 3.1.0-5 built from Fedora SRPMs (should be the
same as EPEL) in a CentOS 5.3 machine, with SELinux enabled, in
"enforced" mode, with "targeted" policy.

I have the BackupPC volume mounted in /var/lib/BackupPC (default
path), I mounted it *before* installing the RPM.

I have had *no* issues with SELinux so far, and I'm running it for a
couple of weeks now.

The RPM includes a file named
/usr/share/selinux/packages/BackupPC/BackupPC.pp, which I believe will
implement the SELinux policies need for BackupPC operation. I believe
it will do so considering the labels that are applied by default in
/var/lib/BackupPC, and if you decide to mount your repository
elsewhere (like /BackupData) it will only give you trouble...

Especially if using SELinux, I would advise you to try to keep your
backups under /var/lib/BackupPC, and also to mount the backup drive at
that path before installing the RPM.

HTH,
Filipe

--
___
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] Hardware considerations for building dedicated backuppc server

2009-07-07 Thread Filipe Brandenburger
Hi,

On Mon, Jul 6, 2009 at 23:57, Les Mikesell wrote:
> The only thing that seems slightly strange in the graphs is the load average
> going to 12 as the backups start and staying there a couple of hours.  
> Normally
> that's the average number of 'other' processes that are waiting for CPU but
> otherwise runnable (i.e. not themselves blocked on i/o).

I used to think that, but in fact processes that are blocked in disk
i/o (the ones in "D" state) do count in load average. So the load
average of 12 in this case probably means processes writing to the
disk.

>From another e-mail showing several (12?) processes BackupPC_dump and
BackupPC_nightly in "D" state, those should be the reason why this box
stays with a load average of 12 during the night.

>From those observations, it seems to me that the bottleneck in this
case is disk I/O.

Stephen, it seems strange to me that there are 8 BackupPC_nightly
processes running, have you increased $Conf{MaxBackupPCNightlyJobs}
from 2 to 8?

I would suggest you start by setting $Conf{MaxBackupPCNightlyJobs}
back to 2 or even to 1. If you set it to 1 and it can't finish its job
in 24h, then increase $Conf{BackupPCNightlyPeriod} to 2 or 4 so that
only 1/2 or 1/4 of the pool is processed each night.

HTH,
Filipe

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have 
the opportunity to enter the BlackBerry Developer Challenge. See full prize 
details at: http://p.sf.net/sfu/blackberry
___
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] Multiple backuppc server

2009-07-07 Thread Filipe Brandenburger
Hi,

On Tue, Jul 7, 2009 at 08:50, Andy Brown wrote:
> Anyone see any pitfalls/problems with what I'm doing here?

Yes, IMHO you are introducing complexity where it is not needed.

What are you trying to accomplish?

Fault-tolerance? In that case you should probably have an
active/passive deployment where the backup host is only used when the
master fails.

Load-balancing for compressing which is CPU intensive? In that case
you should probably split your storage in two 1TB LUNs, export one of
them to each host and run BackupPC over a regular ext3 (or XFS)
filesystem.

OCFS or any other cluster filesystem will only introduce overhead and
management complexity, and from your description it seems you are not
sharing files between hosts anyway.

HTH,
Filipe

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have 
the opportunity to enter the BlackBerry Developer Challenge. See full prize 
details at: http://p.sf.net/sfu/blackberry
___
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] suggestion: make wakeups start at 8am

2009-07-08 Thread Filipe Brandenburger
Hi,

On Wed, Jul 8, 2009 at 10:15, Carl Wilhelm
Soderstrom wrote:
> $Conf{WakeupSchedule} = ...
> The default configuration causes BackupPC to run the BackupPC_nightly job
> when there are backup jobs which may need to run during the night...
> Comments, anyone?

Yes, I would suggest decoupling the start time for the
BackupPC_nightly job from the obscure setting of being the first hour
on which WakeupSchedule is set to.

I believe it would be much more clear if there was a separate
NightlyWakeupSchedule or such setting that would specify at which time
that process would start running. BackupPC would wake up on either
WakeupSchedule or NightlyWakeupSchedule, and then would decide if it
would run backups or BackupPC_nightly (or both) based on that hour
being on the first, second, or both variables. In that case, it would
also be much easier to set a sensible default time for
BackupPC_nightly to run.

Also, as an aside, the process should probably be renamed to
BackupPC_daily, as it makes more sense to run it during the day when
backups are not running. Isn't that right?

Filipe

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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] suggestion: make wakeups start at 8am

2009-07-08 Thread Filipe Brandenburger
On Wed, Jul 8, 2009 at 11:39, Les Mikesell wrote:
>> Also, as an aside, the process should probably be renamed to
>> BackupPC_daily, as it makes more sense to run it during the day when
>> backups are not running. Isn't that right?
>
> I'm not sure you can make a general assumption about when backups are
> run.  Most places would catch machines that are on all the time at night
> but there may also be a lot of desktop machines that are either started
> manually through the web interface or caught outside of the blackout
> time because they aren't available at night.

Agreed, however some default has to be provided and the current one
(1am) may not be the best possible one.

As you said yourself in another thread, even though BackupPC_nightly
can be run while other backups are running, it is better to do so
while no or few backups are running so that they do not compete for
disk I/O and there is also the locking overhead of both potentially
accessing the same files (don't know exactly how that works, but just
disk I/O is enough reason to do it while other backups are not
running).

I agree with the OP that 8am would be more sensible considering it is
inside the default blackout period (when most heavy backups should be
finished and less backups should be running). Someone who uses a
different setup (backups during the day, at noon, etc.) will have to
customize these settings anyway, so they can also choose the best time
for BackupPC_nightly at that time.

The suggestion on the name change is that "nightly" implies it should
be run during the night, when in fact what you want is to run it once
a day, at the time that is more convenient for you.

Thanks,
Filipe

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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] Automatically stopping running backups during business hours

2009-07-14 Thread Filipe Brandenburger
Hi,

On Sun, Jul 12, 2009 at 11:56, Matthias Meyer wrote:
> As an alternative you can place the following script in /etc/crontab.
> #!/bin/bash
> declare -a hosts
> hosts[0]=server1        # fill in your own host names
> hosts[1]=server2        # whose backup should be canceld
> hosts[2]=server3
> declare -i hostcount=3  # configure your count of killable hosts
>
> ps ax | grep "BackupPC_dump -i" | grep -v grep > /tmp/runnings
> while read pid fl1 fl2 duration perl dump fl3 host rest
> do
>        for (( a=0; a        do
>                if [ $host == ${hosts[a]} ]; then kill -9 $pid > /dev/null 
> 2>&1; fi
>        done
> done < /tmp/runnings
> exit 0

Not only "kill -9" should not be used in normal circumstances (as
already pointed out by Chris), as the script could be simplified:

hosts="server1 server2 server3" # list of servers in a string
ps ax | grep "BackupPC_dump -i" | grep -v grep | while read pid fl1
fl2 duration perl dump fl3 host rest; do
for i in $hosts; do
if [ x"$host" = x"$i" ]; then
kill "$pid" >/dev/null 2>&1
break
fi
done
done

1) Use a list of hosts and iterate with "for i in $hosts" instead of
using C style iteration with number of elements in an array.
2) No need to use a temporary file, use |while on the output of ps instead.
3) Use "kill" instead of "kill -9"
4) Once a host is found, use "break" so that it does not iterate to
the end of the list of hosts.

You can even create a script file in which you remove the first hosts=
line and replace "for i in $hosts; do" with "for i; do", in which case
you can call it like this:

# ./killbackups.sh server1 server2 server3

HTH,
Filipe

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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 installation error

2009-07-20 Thread Filipe Brandenburger
Hi,

On Mon, Jul 20, 2009 at 09:46, Siju George wrote:
> I cannot start httpd as backuppc user because it gives the following error.
> --
> (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
> no listening sockets available, shutting down
> -

"Start httpd as backuppc user" means editing httpd.conf and changing
the configuration to read "User backuppc" and "Group backuppc", then
running the script that starts httpd as root.

HTH,
Filipe

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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 installed but compressed backup is failing

2009-07-27 Thread Filipe Brandenburger
Hi,

On Sun, Jul 26, 2009 at 12:07, Andrew Nurcahya wrote:
> If I set $Conf{CompressLevel} anything greater than 0 it is will cause this
> error:
> 2009-07-26 11:00:40 dump failed: can't find Compress::Zlib

Do you get any errors when you run the following command?

$ perl -e 'use Compress::Zlib;'

HTH,
Filipe

--
___
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 stalls and leave zombie process

2009-07-30 Thread Filipe Brandenburger
Hi,

On Thu, Jul 30, 2009 at 13:39, Steve wrote:
> Wondering if anything has had time to think about this question.  I am
> still having the issue...

I don't know about stalling, but leaving zombie processes is something
"normal". As far as I can tell, it happens when you dump multiple
directories or drives from the same machine. BackupPC_dump will fork
one process to dump the first directory, then one process to dump the
second one, and so on, but it will "reap" the children processes all
at once at the end. I don't know if this happens with "rsync" only
(that's how I use it and see it here) or with the other xfer methods
("tar", "smb") as well...

HTH,
Filipe

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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: return of investment

2009-08-04 Thread Filipe Brandenburger
Hi,

On Tue, Aug 4, 2009 at 03:39, Robert Waldner wrote:
> I have /var/lib/backuppc (and /etc/backuppc via symlink) on an (encrypted)
>  3-disk RAID-1, constantly degraded to 2 disks, and on occasion sync
>  a 3rd disk which is cycled with another in the safe.

I have /var/lib/BackupPC in a RAID-10 array of fast disks using XFS
filesystem, then once a week I stop BackupPC, unmount it, and use
xfs_copy (does more or less the same as "dd" on other filesystems,
only copies data blocks only) to an external USB 2TB disk encrypted
with LUKS. The copy of approximately 1.3TB takes about 15 hours. I
have four external USB disks that I rotate and send offsite in a
weekly basis.

The disadvantage I see about keeping a degraded encrypted RAID-1 is
that performance will suffer during normal operation, both due to
encryption and the fact that you have only two disks, and also that
the disk you keep offsite must be the same as the other two, which can
get expensive depending on how much performance you want to get from
it...

HTH,
Filipe

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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 of backuppc User Directory

2009-08-04 Thread Filipe Brandenburger
Hi,

2009/8/4 Christian Völker :
> What I'm wondering is which include/exclude rules I should apply so the
> user data itself is backed up, but not the backup repository.
>
> Anyone an idea?

I don't think you need to back up the encryption keys or SSH
configuration, as you saw yourself it's fairly easy to recreate that
data.

If you really want to back that up, you can just create a new host
"localhost" in your BackupPC and use /var/lib/BackupPC/.ssh as the
share name to backup.

What would be more important is to backup /etc/BackupPC, but in that
case I would not advise you to back that up in BackupPC.

Maybe you should periodically copy the contents of /etc/BackupPC and
/var/lib/BackupPC/.ssh to an external USB disk?

But be very careful of where you store your backup keys! They can
potentially give root access to all your servers to whoever has access
to them.

HTH,
Filipe

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Where is the BackupPC-Wiki?

2009-08-06 Thread Filipe Brandenburger
On Thu, Aug 6, 2009 at 07:04,  wrote:
> I wanted to add some stuff to the wiki (common configuration) but it seems
> that the wiki is no there?
>
> Question:
> - What is going on?
> - Where is the Wiki?

Oh oh...

Sourceforge discontinued the Wiki service. I got this e-mail from them
last week:

On Wed, Jul 29, 2009 at 15:09, SourceForge.net
Team wrote:
> On Thursday July 30, 2009 at 8:00 AM Pacific Time, the SourceForge.net
> staff will be removing the Wikispaces facility that has been available to
> project teams since 2007.
>
> Project teams who have not yet migrated to one of the Hosted Apps wiki
> facilities, Trac or MediaWiki, may opt for one of two choices on
> SourceForge.net; Migration to Trac or MediaWiki.
>
> To migrate to one of these facilities, the project admin who is also an
> admin for one of the facilities (MediaWiki or Trac), needs to log a support
> ticket (https://sourceforge.net/apps/trac/sourceforge/newticket) and
> request migration to a specific facility. Be sure to specify your project
> UNIX name and to which facility you want your data imported (MediaWiki or
> Trac).
>
> The SourceForge.net team will use the dump of the project Wikispaces data
> in /home/groups/P/PR/PROJECT/wikispaces-dump.zip as an import source. It is
> critical that project teams do not move, rename, or otherwise manipulate
> this file prior to the import to the new facility.
>
> If you are importing data from Wikispaces to your existing Hosted App
> facility, like Trac, any data from Wikispaces will be additive to that
> structure. If there are pages of the same name, the new data will replace
> the existing data. Users may need to use the history facility to adjust the
> pages at that point.
>
> MediaWiki only supports image attachments, so any non-image attachments
> won't be imported to MediaWiki. Trac supports these, so this will work just
> fine for Trac implementations. Users will be able to access their zip files
> to recover any non-image attachments if they have selected MediaWiki as the
> new facility.
>
> Finally, we'd like to thank Wikispaces for their support of SourceForge.net
> and our users with this facility.
> Best regards,
>
> Daniel Hinojosa - Sr. Manager, SourceForge.net Support
>
> P.S., Be sure to monitor our Site Status page,
> https://sourceforge.net/sitestatus.

I believe they still should have a backup of the contents just before
the service was discontinued, and I believe it should be possible to
request the migration to Trac or MediaWiki by opening a support ticket
with them.

HTH,
Filipe

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Switching from gzip to bzip2

2009-08-10 Thread Filipe Brandenburger
Hi,

On Sat, Aug 8, 2009 at 08:36, Nate T wrote:
> Will switching from gzip to bzip2 do bad things to the existing cpool?

I don't think it's possible to "switch" to bzip2... BackupPC will use
gzip-like compression, which is not exactly like gzip but similar to
it.

If you have spare CPU and want to compress harder, you can tune the
compression level of backups in your config.pl, IIRC it's set to "3"
by default, you can use "6" (default for gzip) or "9" (stronger
compression) or anything in between, those will use more CPU and
compress better.

AFAIK, the existing files in your cpool will not be recompressed, so
until they are phased out (removed from the original machines) I don't
think they will be replaced by a copy that is more compressed... I'm
not aware of a script that goes through an existing cpool
recompressing the files, but there might indeed be one that does that.

HTH,
Filipe

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Quick Question - Editing User's Email

2009-08-10 Thread Filipe Brandenburger
Hi,

On Mon, Aug 10, 2009 at 11:29, Bryan Gintz wrote:
> If I go into a particular user's area and click on their username (e.g.
> "bryan"), it will try to send an email to "bryan", not my full email
> address.
>
> Does anyone know how to attach my email address to my username, so it
> uses that instead?

See these parameters on how to convert usernames to URLs:
$Conf{CgiUserHomePageCheck}
$Conf{CgiUserUrlCreate}

However, unless your e-mail is something like "br...@some.domain.com"
that contains your exact username, I don't think it's going to do what
you want... In that case, I would recommend that you set up some
e-mail redirects or aliases based on the usernames that you use in
BackupPC.

HTH,
Filipe

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Configure ssh: X11 connection rejected because of wrong authentication.

2009-08-10 Thread Filipe Brandenburger
Hi,

On Mon, Aug 10, 2009 at 10:19, Craig
Swanson wrote:
> host tapper: BackupPC on fedora 10 x86_64
>  Created a public key as backuppc on the server, copied to the client's
> backuppc home dir.
>  config.pl:$Conf{RsyncClientCmd} = '$sshPath -x  -l backuppc $host nice -n
> 19 sudo $rsyncPath $argList+';

It's a long shot, but did you try to set up BackupPC SSH keys on the
target's root user and connect to the sshd with the root user without
using sudo? Does that work or do you have the same error? I've seen
some strange setups of sudo with some PAM modules that use GTK/GNOME
and consequently require X... if you test it without sudo and it
works, that is most likely the problem, if it doesn't work either, at
least that hypothesis is discarded...

>  -q was removed, hoping to see more info.

So, you had the same problem with -q or not? It was not completely
clear from your original post...

Also, do you have something in /etc/ssh/ssh_config or
~backuppc/.ssh/config that might be triggering this issue?

HTH,
Filipe

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] automated off-site backup (via BackupPC_archiveStart or restore)

2009-08-10 Thread Filipe Brandenburger
Hi,

On Mon, Aug 10, 2009 at 16:00, Shaun Curry wrote:
> Thanks Les for this.  Does anyone have a working rsync with -H option over a
> sshfs?

You are making this harder than it has to be...

rsync supports doing a transfer over the network using SSH as a transport.

Instead of mounting the filesystem as SSHFS and then doing rsync
 , do not mount anything and use rsync  ,
it will use SSH by default. If you want to do that in a cron job or
something like that, you can set up SSH keys to do the authentication
without user interaction.

> I am running this command::~# rsync -avH /var/lib/backuppc /backup/pool/

Run instead:

# rsync -avH /var/lib/backuppc remote.host.domain.name:/path/to/backup/pool/

Where obviously remote.host.domain.name:/path/to/backup/pool/ is what
you have mounted under /backup/pool/ using SSHFS on your local
machine...

HTH,
Filipe

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] 100,000+ errors in last nights backup

2009-08-12 Thread Filipe Brandenburger
Hi,

On Wed, Aug 12, 2009 at 08:49, Steve Blackwell wrote:
> 2009-08-12 05:00:08 BackupPC_link got error -3 when calling
> MakeFileLink(/media/disk/pc/steve/151/f%2f/froot/f.gconf/fdesktop/fgnome/faccessibility/fkeyboard/f%25gconf.xml,
> b32585c3cc30b7ebb556d335a08554e3, 1)
>
> followed by 100,000+ of the same error on different files
>
> What is going on here?

I used to have exactly this problem.

I guess you changed TopDir in your config.pl file, right?

Well, BackupPC 3.1.0 has a bug in that TopDir change will not affect
the "pool" and "cpool" directories, so it will try to create a
hardlink in /var/lib/BackupPC for a file in /media/disk, which are in
different filesystems, so it fails.

See this post for a patch that can be used to fix this issue:
http://sourceforge.net/mailarchive/message.php?msg_name=20080808032558.GG13869%40gratch.parplies.de

Alternatively, you may remove the /var/lib/BackupPC directory and
create a symbolic link to /media/disk in its place.

You can also upgrade your setup to 3.2.0 beta, which has this bug already fixed.

HTH,
Filipe

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] patch for auto-detection of Bonjour (apple) clients for 3.2

2009-08-13 Thread Filipe Brandenburger
Hi,

On Thu, Aug 13, 2009 at 15:14, Jeffrey J. Kosowsky wrote:
> I'm not sure what the problem is with just appending '.local' to the
> names of Bonjour hosts in the Backuppc 'hosts' file. Alternatively,
> just create the aliases in the /etc/hosts file or equivalents.

Or add "search local" to /etc/resolv.conf

HTH,
Filipe

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Is there a speed setting?

2009-08-17 Thread Filipe Brandenburger
Hi,

On Mon, Aug 17, 2009 at 14:55, Jeremy Mann wrote:
> Just curious if there is a bandwidth speed setting for BackupPC because
> I'm not seeing a lot of bandwidth when the backups occur. All my servers
> are on gigE and I'm not even seeing 50Mbit speeds between the servers and
> backupPC server.

50Mbps is actually quite a lot, and it's probably close to the
bottleneck of your disks. You should use "iostat" on client and server
while backups are running to see if you're getting 100%util of the
disks that are being backed up.

In BackupPC's case, as it will transfer only the differences, it will
end up reading from disk much more than it actually sends on the
network, so using network bandwidth as a measure of backup speed will
not be very accurate.

HTH,
Filipe

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] New user- loads of questions

2009-08-18 Thread Filipe Brandenburger
Hi,

On Tue, Aug 18, 2009 at 07:04, Nigel
Kendrick wrote:
> 4) I am running the backup server on CentOS 5.3 and installed backuppc from
> the Centos RPM. Ideally I'd like to run the app as the normal 'apache' user
> - I read up on a few generic notes about doing this and got to a point where
> backuppc wouldn't start properly as it couldn't create the LOG file. I then
> went round in circles looking at file permissions before putting things back
> the way they were in order to do some more learning. Is there a
> simple-to-follow guide for setting up backuppc to not use mod_perl - I have
> read the docs but am still not getting there.

I've been through the same with CentOS RPM for BackupPC, eventually I
just stopped using it...

I rebuilt the SRPM for BackupPC from Fedora, it builds just fine in
CentOS 5 and works just fine. It actually starts working out of the
box, without any changes to Apache needed, you're able to use Apache
with user "apache" and even run other applications on the same server.

I reported those issues to CentOS, but they still found that requiring
the users to change Apache's user was acceptable and did not want to
change that...

You may also try EPEL's package of BackupPC, I believe it will be the
same as the one I rebuilt from Fedora's SRPMS:
http://download.fedora.redhat.com/pub/epel/5/i386/BackupPC-3.1.0-3.el5.noarch.rpm

Otherwise, get Fedora's SRPM here:
ftp://ftp.nrc.ca/pub/systems/linux/redhat/fedora/linux//releases/11/Everything/source/SRPMS/BackupPC-3.1.0-5.fc11.src.rpm

And use these instructions to rebuild it:
http://wiki.centos.org/HowTos/RebuildSRPM

HTH,
Filipe

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Access Deny / Authorization Required

2009-09-14 Thread Filipe Brandenburger
Hi,

On Mon, Sep 14, 2009 at 15:17, Simone S. Santiago
 wrote:
> My Backuppc Server was working properly, but suddenly it started to deny
> my username.
> I tried to re-configure the password using the command "htpasswd" and
> nothing...
>
> Have anyone seen this problem before?

It's really hard to diagnose the problem considering the information
you are giving...

I suggest you check your Apache logs, the location of which will
depend on which Linux distribution you are using, to determine what
might be going wrong with your authentication.

If you are using Fedora/CentOS/RHEL the logs should be at
/var/log/httpd/access_log and /var/log/httpd/error_log, you might try
to run the "tail -f /var/log/httpd/*_log" command and then try to
login to your server to see what will be logged there while you do
that.

If that still does not help you solve your problem, then please post
back to the list with more information, such as which Linux
distribution and version are you using, which version of BackupPC you
have installed, a snippet of the relevant Apache configuration, a "ls
-l" of the file with the passwords (to check for permission issues),
what you found on the Apache logs, if there is anything weird in
/var/log/messages or any other relevant logs, etc.

HTH,
Filipe

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
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/