Re: [BackupPC-users] Using Filesys::SmbClient for smb

2007-04-11 Thread Pradeep Raghavan

hiya,

Thanks for the reply. Seems I should wait for sometime.

cheers..

./Pradeep


On 4/11/07, Craig Barratt < [EMAIL PROTECTED]> wrote:


Pradeep writes:

> I am trying to make use of the Smbclient perl module for backing up my
WinXX
> machines. The steps I have taken are as detailed below
>
> 1. Installed the perl module
> 2. Loaded the perl module " SmbClient.pm" using the parameter
> ***$Conf{PerlModuleLoad}
>
> After this step I do not know where to go. Should I go and change the
> smbclient path and if yes what will be the path to ( smbclient.pm ??)

A substantial amount of code development is required to
make Filesys::SmbClient work with BackupPC.

Craig

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
BackupPC-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Backing up localhost - permission question

2007-04-11 Thread Holger Parplies
Hi,

Eric Snyder wrote on 11.04.2007 at 20:15:50 [[BackupPC-users] Backing up 
localhost - permission question]:
> I am setting up localhost to be backed up. In the help file at 
> http://backuppc.sourceforge.net/faq/localhost.html there is the 
> following blurb:
> 
> "Make sure this script and all parent directories have no write 
> permission. Then remove the -c from $Conf{TarClientCmd} 
>  
> and change the tar path:"
> 
> Is this write permission for owner, group, others or all three?

whatever makes sense (see below :). The point is that anyone with write
permission to - and that's the important part - *either* script *or* *any*
parent directory would be able to replace the script by something of his/her
own creation, thus not only circumventing the supposed restriction (context:
limiting priviledges given to the BackupPC user through sudo), but rather
giving *anyone at all* with such write permission the possibility to run
*any command* as root, if he can only get BackupPC to run (his modified
version of) the script (i.e. initiate a backup or wait for a scheduled one).

Owner write permission is not something you can meaningfully remove since
the owner can chmod() a file/directory however he likes anyway (except
maybe on ext2/3 if you make the file/dir immutable ...).

This probably means that all parent directories and the script itself should
be *owned by root* and *not writeable* for group and others. Actually, I'd
recommend not using that approach at all. If I'm not completely mistaken
[read: it is documented and proves to work that way on Debian sarge ;-],
you can achieve the same with a sudoers line like

backuppc ALL = NOPASSWD: /bin/tar -c *

You just need to make sure you always pass the -c as first and separate
argument to tar (in $Conf{TarClientCmd}), as the following will all *not*
match, because in all cases the first argument to tar is not '-c':

/bin/tar -v -c ...
/bin/tar -cf ...
/bin/tar c -f ...

Note that automatic restores through the web interface will no longer work,
as BackupPC cannot initiate the TarClientRestoreCmd (tar -x).


Was your question related to the thread you are referencing
("BackupPC_link errors")?

Regards,
Holger

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Backing up localhost - permission question

2007-04-11 Thread Eric Snyder

Hello all:

I am setting up localhost to be backed up. In the help file at 
http://backuppc.sourceforge.net/faq/localhost.html there is the 
following blurb:


"Make sure this script and all parent directories have no write 
permission. Then remove the -c from $Conf{TarClientCmd} 
 
and change the tar path:"


Is this write permission for owner, group, others or all three?

Thanks,
Eric Snyder
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Resources for fixing File::RsyncP

2007-04-11 Thread John Buttery
* On Wednesday 11 April 2007 12:11, mattkelly <[EMAIL PROTECTED]> 
wrote:
>Thanks for the reply.  My system is running Ubuntu, so I don't know if
> this yum repository is compatible.  The libfile-rsyncp-perl package
> is only version 0.52, and I don't know what source to add that might
> have an updated version 0.68.  Does anyone else here use ubuntu and
> know of an updated package? Thanks.

  I assume, by "Ubuntu", you mean 6.06/Dapper; perhaps there's a 
backport of the 6.10/Edgy or 7.04/Feisty package?  You could also try 
the packages from "Debian proper"...the recently-released 4.0/Etch (as 
in, a few days ago) may have a newer version, or possibly the unstable 
aka "sid" version.  Despite the "unstable" moniker, I find Debian sid 
packages to be very reliable in most cases.

  All of that is assuming you decide not to go the CPAN route as Chris 
suggested, which would almost certainly get you what you want if going 
outside APT isn't a hangup for you.

-- 
John Buttery <[EMAIL PROTECTED]>
System Administrator

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Resources for fixing File::RsyncP

2007-04-11 Thread Chris Stone

> Thanks for the reply.  My system is running Ubuntu, so I don't know if this
> yum repository is compatible.  The libfile-rsyncp-perl package is only version
> 0.52, and I don't know what source to add that might have an updated version
> 0.68.  Does anyone else here use ubuntu and know of an updated package?

Try:

cpan install File::RsyncP

or

perl -MCPAN -e 'install File::RsyncP'


Chris



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Resources for fixing File::RsyncP

2007-04-11 Thread mattkelly
Nils Breunese wrote:

> Looks like you're missing a bunch of header files (lines 4-22 of your  
> output). On my CentOS system these are part of the glibc-headers  
> package, though if you're on CentOS/Red Hat/Fedora you might just as  
> well install perl-File-RsyncP from Dag Wieers yum repository and not  
> worry about making and keeping it up to date yourself.

Thanks for the reply.  My system is running Ubuntu, so I don't know if this yum 
repository is compatible.  The libfile-rsyncp-perl package is only version 
0.52, and I don't know what source to add that might have an updated version 
0.68.  Does anyone else here use ubuntu and know of an updated package?  
Thanks.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Spurious tar status message interpreted as error

2007-04-11 Thread Craig Barratt
Jorg writes:

> (27GiB, 7,0MiB/s))
> Backup aborted (Gesamtzahl geschriebener Bytes: 28282449920 (27GiB, 7,0MiB/s))
> 
> Is this a localization issue? Doesn't backuppc understand what tar is saying? 

Yes and yes.

> How can I fix this?

This is the standard config setting:

$Conf{TarClientCmd} = '$sshPath -q -x -n -l root $host'
. ' env LC_ALL=C $tarPath -c -v -f - -C $shareName+'
. ' --totals';

Craig

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Spurious tar status message interpreted as error

2007-04-11 Thread Jörg Rüppel
Hello,

I'm doing local backups using tar transfer, with this configuration:

$Conf{TarClientCmd} = '/usr/bin/sudo $tarPath -c -v -f - -C 
$shareName --totals';
$Conf{TarClientRestoreCmd} = '/usr/bin/sudo 
$tarPath -x -p --numeric-owner --same-owner -v -f - -C $shareName';
$Conf{TarFullArgs} = '$fileList';
$Conf{TarIncrArgs} = '--newer=$incrDate $fileList';

However, near the end of every attempt at a full backup, I get this:

...
pool 775 0/100   57886 windows/g/file1
pool 775 0/100  310005 windows/g/file2
Gesamtzahl geschriebener Bytes: 28282449920 (27GiB, 7,0MiB/s)
create   775 0/100   0 windows/g/folder
pool 775 0/100  157956 windows/g/folder/file1
pool 775 0/100 3054665 windows/g/folder/file2
...
tarExtract: Done: 0 errors, 299590 filesExist, 27869812940 sizeExist, 
21092343321 sizeExistComp, 299671 filesTotal, 27981023293 sizeTotal
Got fatal error during xfer (Gesamtzahl geschriebener Bytes: 28282449920 
(27GiB, 7,0MiB/s))
Backup aborted (Gesamtzahl geschriebener Bytes: 28282449920 (27GiB, 7,0MiB/s))

Is this a localization issue? Doesn't backuppc understand what tar is saying? 
How can I fix this?

Thanks in advance

-- 
Jörg Rüppel
http://www.sharky-x.de
GPG Fingerprint: A2F5 96A9 5F5E 0D69 044D  4976 F7ED FBA8 811E 0910



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Using Filesys::SmbClient for smb

2007-04-11 Thread Craig Barratt
Pradeep writes:

> I am trying to make use of the Smbclient perl module for backing up my WinXX
> machines. The steps I have taken are as detailed below
> 
> 1. Installed the perl module
> 2. Loaded the perl module "SmbClient.pm" using the parameter
> ***$Conf{PerlModuleLoad}
> 
> After this step I do not know where to go. Should I go and change the
> smbclient path and if yes what will be the path to (smbclient.pm ??)

A substantial amount of code development is required to
make Filesys::SmbClient work with BackupPC.

Craig

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Using Filesys::SmbClient for smb

2007-04-11 Thread Pradeep Raghavan

Hiya,

I am trying to make use of the Smbclient perl module for backing up my WinXX
machines. The steps I have taken are as detailed below

1. Installed the perl module
2. Loaded the perl module "SmbClient.pm" using the parameter
***$Conf{PerlModuleLoad}


After this step I do not know where to go. Should I go and change the
smbclient path and if yes what will be the path to (smbclient.pm ??)

thanks in advance.

cheers...

./Pradeep
*
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/