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

2008-04-22 Thread Kai Grunau
Hello,

shacky wrote:
 I'm installing BackupPC 3.1.0 on a SuSE 10.0 system.
 After I installed it I copied the init.d/suse-backuppc script from the
 BackupPC sources directory to /etc/init.d/backuppc and I chmodded it
 to 755.
 Now if I start it with /etc/init.d/backuppc start I get this error:

 server:/usr/local/src/BackupPC-3.1.0/init.d # /etc/init.d/backuppc start
 Starting backuppc: /usr/local/backuppc/bin/BackupPC: Wrong user: my
 userid is 0, instead of 105 (backuppc)
 Please su backuppc first
 BackupPC::Lib-new failed
 startproc:  exit status of parent of /usr/local/backuppc/bin/BackupPC: 2

 Why this happens?
 I checked the init.d script and the parameters seems to be correct.
 The command that starts BackupPC in the start) stanza of the init.d
 script is startproc -f  -p $LOGDIR/BackupPC.pid -u $USER
 $BINDIR/$DAEMON -d, which should be correct.
 If I try to manually execute the command startproc -f  -p
 /var/log/BackupPC/BackupPC.pid -u backuppc
 /usr/local/backuppc/bin/BackupPC -d (please note the -u backuppc
 parameter to start BackupPC as backuppc user) I get the same error, so
 I don't think the problem is the init.d script.
   
do you have a correct Apache2 configuration with the perl module (/etc/sys
config/apache = APACHE_MODULES ) ?

regards, Kai


-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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  
with the shell set to /bin/false. Since you might need to run some  
BackupPC programs as the BackupPC user for testing purposes, you can  
use the -s option to su to explicitly run a shell, eg:

 su -s /bin/bash __BACKUPPCUSER__


Nils Breunese.

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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.forteego.de

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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/local/backuppc/bin # su - backuppc
 [EMAIL PROTECTED]:~ /usr/local/backuppc/bin/BackupPC -d
 /usr/local/backuppc/bin/BackupPC: Wrong user: my userid is 0, instead
 of 105 (backuppc)
 Please su backuppc first
 BackupPC::Lib-new failed
 
 I don't understand why.

What's that suidperl you talked about? Why did you ask me for it?
What is the first line of your bin/BackupPC?

Bye,

Tino.

-- 
„What we resist, persists.” (Zen saying)

www.craniosacralzentrum.de
www.forteego.de

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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:
server:/ # grep backuppc /etc/passwd
backuppc:x:105:105:BackupPC,,,:/var/lib/backuppc:/bin/sh

 what is the output of
 su backuppc -c  /usr/local/backuppc/bin
  /BackupPC -d

The same output:
server:/ # su backuppc -c /usr/local/backuppc/bin/BackupPC -d
/usr/local/backuppc/bin/BackupPC: Wrong user: my userid is 0, instead
of 105 (backuppc)
Please su backuppc first
BackupPC::Lib-new failed

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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...

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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 by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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 perl program, run it as user backuppc:

#!/usr/bin/perl
#
system (id);

HTH,

Tino.

-- 
„What we resist, persists.” (Zen saying)

www.craniosacralzentrum.de
www.forteego.de

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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 bin/BackupPC is
  
  #!/usr/bin/perl
 
 Maybe /usr/bin/perl is suid?
 
 Try the following perl program, run it as user backuppc:
 
 #!/usr/bin/perl
 #
 system (id);
# also add this:
print my effective uid: , $;
print my real uid: , $;

Tino.

-- 
„What we resist, persists.” (Zen saying)

www.craniosacralzentrum.de
www.forteego.de

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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 program, run it as user backuppc:

server:/usr/local/bin # su -c test.pl backuppc
Insecure $ENV{PATH} while running setuid at /usr/local/bin/test.pl line 3.

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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 don't run SuSE, but on my CentOS machines /usr/bin/perl is 0755.  
What does 'rpm --verify perl' say? (No output is good.)

Nils.

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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 working on this?

There can't be that many...

Maybe I'll find time one day...

-- 
Mike Yates CMBCS (ISSG)
IT Support Engineer


Hawkgrove Ltd  -  Software Systems Design
2, The Business Courtyard, Marl Pits Lane, Trudoxhill, Frome, Somerset, BA11 
5DL, UK
+44 (0)1373 837900 fax:  +44 (0)8700 518155
Registered in England: 2756481  VAT Reg: UK 601 1137 11
Registered Office: NSO Associates LLP, 75 Springfield Road, Chelmsford, Essex 
CM2 6JB
All e-mail is subject to contract and is not intended to create a legally 
binding agreement. 
Hawkgrove Ltd will only be bound by an agreement in writing signed by an 
authorized signatory.
All outgoing email is scanned by Kerio, using McAffee Antivirus.


-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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 problems.
The fact is that I need to have the BackupPC data on a network storage
server (NAS), a Lacie network hard disk which accept Samba, HTTP or
FTP.

Thank you very much for your help!
Bye.

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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 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 big cheap local disk.

-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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 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 local disk because there is no more space left in
the rack cabinet.

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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 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 Enterprises
www.real-time.com

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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 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 data pooling.

I believe it does work when the filesystem behind SMB/CIFS supports  
them. It really depends on what filesystem is used on the NAS.

 - It's going to be slow. Just buy a big cheap local disk.

+1.

Nils Breunese.

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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 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, e-sata. Your 
performance will thank you.

Cheers, Stephen
--
Stephen Joyce
Systems AdministratorP A N I C
Physics  Astronomy Department Physics  Astronomy
University of North Carolina at Chapel Hill Network Infrastructure
voice: (919) 962-7214and Computing
fax: (919) 962-0480   http://www.panic.unc.edu

The purpose of the icons, the purpose of the entire OS X look and feel, is
to keep the customer happy during that critical period between the time of
sale and the time the check clears.

On Tue, 22 Apr 2008, 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 2.0 port of the server
 formatting it to ext3?
 I cannot add another local disk because there is no more space left in
 the rack cabinet.

 -
 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 J8TL2D2.
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 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/


-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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 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 2.0 port of the server
 formatting it to ext3?
 I cannot add another local disk because there is no more space left in
 the rack cabinet.

That would be almost the same as a local disk, although performance will
be limited and you should never trust data which is on a single disk
only.

Sysadmin mantra: A file which is only stored at one place is considered
lost.

Maybe there are simple RAID enclosures out there with USB connectors?
You could even do software RAID over two USB-connected disks.

Bye,

Tino.

-- 
„What we resist, persists.” (Zen saying)

www.craniosacralzentrum.de/blog/
www.forteego.de

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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 'locate' command.

Our /var/lib/mlocate/mlocate.db file had grown to over 2.5GB since it 
was indexing the BackupPC data directory. To avoid this problem, merely 
add the path to the BackupPC data directory into /etc/updatedb.conf in 
the PRUNEPATHS = section.

Hope this helps someone out. We backup the /var/ directory on our 
servers (auditing purposes) and this was taking up a bit of space every 
night.

This *fix* also applies to Debian and Slackware though Slackware uses 
slocate instead of mlocate.

-- 
Ryan Manikowski

System Administrator
Proteus, Inc.
[EMAIL PROTECTED]
:703.677.8499:




-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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 purchase a little Temporary 
Safety, deserve neither Liberty nor Safety.


-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] 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 file shrunk down to 3MB.

-- 
Ryan Manikowski

System Administrator
Proteus, Inc.
[EMAIL PROTECTED]
:703.677.8499:



Doug Lytle wrote:
 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


   




-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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 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 server and 
export the drives via iscsi or ataoe

shacky wrote:
 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 problems.
 The fact is that I need to have the BackupPC data on a network storage
 server (NAS), a Lacie network hard disk which accept Samba, HTTP or
 FTP.

 Thank you very much for your help!
 Bye.

 -
 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 J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 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/
   

-
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 J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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/