Re: [BackupPC-users] BackupPC data on a Samba share

2008-04-22 Thread Daniel Denson
Quite simply, this is not possible using any kind of standard method. You could loopmount a ext3 disk image from the samba share but you will then be going through 2 software layers to get to the filesystem which will be quite slow! Best to get a NAS disk that supports NFS or to setup another

Re: [BackupPC-users] updatedb exclusion for Linux BackupPC users

2008-04-22 Thread Ryan Manikowski
Just to give you an idea of how much space you may save by modifying the /etc/updatedb.conf file to exclude the BackupPC data directory, our /var/lib/mlocate/mlocate.db file had grown to 2.5GB. After adding the path to /etc/updatedb.conf and then manually running 'updatedb', the mlocate.db fi

Re: [BackupPC-users] updatedb exclusion for Linux BackupPC users

2008-04-22 Thread Doug Lytle
Ryan Manikowski wrote: > By chance I stumbled upon a small modification to any linux system using > an mlocate/slocate db. Our BackupPC server runs on Centos 5 which by > Excellent! Just updated mine as well. Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to pu

[BackupPC-users] updatedb exclusion for Linux BackupPC users

2008-04-22 Thread Ryan Manikowski
By chance I stumbled upon a small modification to any linux system using an mlocate/slocate db. Our BackupPC server runs on Centos 5 which by default runs 'updatedb' every night. For those of you unfamiliar with this program, it creates and modifies /var/lib/mlocate/mlocate.db for use with the

Re: [BackupPC-users] BackupPC data on a Samba share

2008-04-22 Thread Tino Schwarze
On Tue, Apr 22, 2008 at 05:07:52PM +0200, shacky wrote: > > - If you're using SMB or CIFS I don't think it will support the hardlinks > > that BackupPC requires for data pooling.> > > - It's going to be slow. Just buy a big cheap local disk. > > And connecting the external hard drive to a USB

Re: [BackupPC-users] BackupPC data on a Samba share

2008-04-22 Thread Stephen Joyce
My opinion (worth exactly what you're paying for it): For anything approaching 1TB or larger, consider xfs over ext3. Fsck'ing a large ext3 filesystem takes ages. For portability, USB 2 is great. If the drive won't be moving and you have (or can add) the ports, consider Firewire, or better yet,

Re: [BackupPC-users] BackupPC data on a Samba share

2008-04-22 Thread Nils Breunese (Lemonbit)
Carl Wilhelm Soderstrom wrote: > On 04/22 04:43 , shacky wrote: >> Anyone is using BackupPC with the data directory (var/lib/backuppc) >> on >> a remote Samba share? > > Don't do it. > > - If you're using SMB or CIFS I don't think it will support the > hardlinks > that BackupPC requires for d

Re: [BackupPC-users] BackupPC data on a Samba share

2008-04-22 Thread Carl Wilhelm Soderstrom
On 04/22 05:07 , shacky wrote: > And connecting the external hard drive to a USB 2.0 port of the server > formatting it to ext3? should work, tho not the fastest way to do things (and BackupPC is usually disk-speed-limited on modern hardware). -- Carl Soderstrom Systems Administrator Real-Time E

Re: [BackupPC-users] BackupPC data on a Samba share

2008-04-22 Thread shacky
> - If you're using SMB or CIFS I don't think it will support the hardlinks > that BackupPC requires for data pooling.> > - It's going to be slow. Just buy a big cheap local disk. And connecting the external hard drive to a USB 2.0 port of the server formatting it to ext3? I cannot add another

Re: [BackupPC-users] BackupPC data on a Samba share

2008-04-22 Thread Carl Wilhelm Soderstrom
On 04/22 04:43 , shacky wrote: > Anyone is using BackupPC with the data directory (var/lib/backuppc) on > a remote Samba share? Don't do it. - If you're using SMB or CIFS I don't think it will support the hardlinks that BackupPC requires for data pooling. - It's going to be slow. Just buy a bi

[BackupPC-users] BackupPC data on a Samba share

2008-04-22 Thread shacky
Anyone is using BackupPC with the data directory (var/lib/backuppc) on a remote Samba share? I'm trying to do this but I have a lot of problems (like some timeout errors of smbclient in /var/log/messages). I wish to know if this configuration should work or if it is normal it to make me some proble

Re: [BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)

2008-04-22 Thread shacky
Thank you very much to everybody! I solved all my problems... :-) - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code

[BackupPC-users] List of serverMesg commands

2008-04-22 Thread Mike Yates
Craig Barratt wrote: > Sean writes: > >> Is there a backuppc command line reference anywhere? I would like to >> write a script to disable backups on a host until the next wakeup. > > No, sorry it isn't documented. > > You should just look at the code to figure out the commands. > Is anyone w

Re: [BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)

2008-04-22 Thread shacky
> I don't run SuSE, but on my CentOS machines /usr/bin/perl is 0755. > What does 'rpm --verify perl' say? (No output is good.) Ok, now it works! And the web interface works too! Now I have another problem. BackupPC doesn't use my configuration in /etc/backuppc/config.pl and /etc/backuppc/hosts.

Re: [BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)

2008-04-22 Thread Nils Breunese (Lemonbit)
shacky wrote: >>> Maybe /usr/bin/perl is suid? > > Yes! > Perl is suid: > > server:/usr/local/bin # ls -l /usr/bin/perl > -rwsr-xr-x 3 root root 1334016 2007-11-08 18:49 /usr/bin/perl > > How permissions I have to set to /usr/bin/perl? > On another server I have it setted to 755, is it right? I

Re: [BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)

2008-04-22 Thread shacky
> > Maybe /usr/bin/perl is suid? Yes! Perl is suid: server:/usr/local/bin # ls -l /usr/bin/perl -rwsr-xr-x 3 root root 1334016 2007-11-08 18:49 /usr/bin/perl How permissions I have to set to /usr/bin/perl? On another server I have it setted to 755, is it right? > > Try the following perl pro

Re: [BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)

2008-04-22 Thread Tino Schwarze
On Tue, Apr 22, 2008 at 12:22:05PM +0200, Tino Schwarze wrote: > On Tue, Apr 22, 2008 at 12:10:27PM +0200, shacky wrote: > > > What's that suidperl you talked about? Why did you ask me for it? > > > What is the first line of your bin/BackupPC? > > > > Sorry, I was wrong. > > The first line of my

Re: [BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)

2008-04-22 Thread Tino Schwarze
On Tue, Apr 22, 2008 at 12:10:27PM +0200, shacky wrote: > > What's that suidperl you talked about? Why did you ask me for it? > > What is the first line of your bin/BackupPC? > > Sorry, I was wrong. > The first line of my bin/BackupPC is > > #!/usr/bin/perl Is that suid? Try the following per

Re: [BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)

2008-04-22 Thread shacky
> What's that suidperl you talked about? Why did you ask me for it? > What is the first line of your bin/BackupPC? Sorry, I was wrong. The first line of my bin/BackupPC is #!/usr/bin/perl - This SF.net email is sponsored b

Re: [BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)

2008-04-22 Thread shacky
> do you have a correct Apache2 configuration with the perl module (/etc/sys > config/apache => APACHE_MODULES ) ? It can't be these, as my problem happens with the start of the BackupPC daemon, and not in the Apache configuration... -

Re: [BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)

2008-04-22 Thread shacky
> try > su backuppc -c id > what is your output? server:/ # su backuppc -c id uid=105(backuppc) gid=105(backuppc) gruppi=16(dialout),33(video),105(backuppc) > did you create the user backuppc? if so, does backuppc have a home > directory and does it have a default shell of /bin/bash? Yes: serve

Re: [BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)

2008-04-22 Thread Tino Schwarze
On Tue, Apr 22, 2008 at 12:22:44AM +0200, shacky wrote: > > Everything in bin/ is owned by user backuppc and has rights -r-xr-xr-x. > > Yes, I have the same permissions. > The strange thing is that I get the same error even if I try to run > BackupPC directly as backuppc user: > > server:/usr/lo

Re: [BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)

2008-04-22 Thread Tino Schwarze
On Mon, Apr 21, 2008 at 08:53:27PM -0600, dan wrote: > just for fun, try to suid backuppc the init script. SUID doesn't work for shell scripts for security reasons (I don't remember the exact reason, though). Tino. -- „What we resist, persists.” (Zen saying) www.craniosacralzentrum.de www.for

Re: [BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)

2008-04-22 Thread Nils Breunese (Lemonbit)
dan wrote: > did you create the user backuppc? if so, does backuppc have a home > directory and does it have a default shell of /bin/bash? http://backuppc.sourceforge.net/faq/BackupPC.html#item_backuppc_user says: For security purposes you might choose to configure the BackupPC user