I can run the ssh rsync thing (sudo hasn't work for me yet) from the command
line but it doesn't work from the web page. I think it is because it asks if
I want to accept the security key and then asks for the root password.
How can I get around this so it will run from CGI interface?

On 18/12/06, Krsnendu dasa <[EMAIL PROTECTED]> wrote:

When I ctrl-c out of the command I get these messages.

exiting after signal INT
Use of uninitialized value in chdir at /usr/lib/perl5/5.8.8/File/Find.pm
line 751.
Use of chdir('') or chdir(undef) as chdir() is deprecated at
/usr/lib/perl5/5.8.8/File/Find.pm line 751.
Use of uninitialized value in concatenation (.) or string at
/usr/lib/perl5/5.8.8/File/Find.pm line 752.
Can't cd to : No such file or directory
exiting after signal ALRM
Can't call method "getStats" on an undefined value at
/usr/share/BackupPC/bin/BackupPC_dump line 1002 during global destruction.


On 18/12/06, Krsnendu dasa <[EMAIL PROTECTED]> wrote:
>
>
>
> On 17/12/06, Les Stott < [EMAIL PROTECTED]> wrote:
> >
> >  Krsnendu dasa wrote:
> >
> > I am having problems backing up localhost. It only allows me to backup
> > directories and files with access set for all.
> >
> > I have tried rsyncd. When I use rsync from my windows computer I can
> > copy files from any share, but when I try to use it from BackupPC it gives
> > me permissions problems.
> >
> > Here is the xfer log:
> >
> > Connected to localhost:873, remote version 29
> > Negotiated protocol version 26
> > Connected to module intranet
> > Sending args: --server --sender --numeric-ids --perms --owner --group -D 
--links --times --block-size=2048 --recursive --checksum-seed=32761 --ignore-times . .
> >
> >
> >
> > Checksum caching enabled (checksumSeed = 32761)
> > Remote[1]: rsync: link_stat "/." (in intranet) failed: Permission denied 
(13)
> > Xfer PIDs are now 28142
> > Remote[1]: rsync error: some files could not be transferred (code 23) at
> >
> >
> > main.c(615) [sender=2.6.8]
> > Read EOF:
> > Tried again: got 0 bytes
> > Child is aborting
> > Done: 0 files, 0 bytes
> > Got fatal error during xfer (No files dumped for share intranet)
> > Backup aborted (No files dumped for share intranet)
> >
> >
> >
> > When that didn't work I thought I would try tar. I tried the sudo tar
> > trick given in the documentation, but it just seems to freeze waiting for a
> > password or something.
> > I cut and pasted the command from the documentation
> >
> > $Conf{TarClientCmd} 
<http://backuppc.sourceforge.net/faq/BackupPC.html#item_%24conf%7btarclientcmd%7d> = 
'/usr/bin/sudo $tarPath -c -v -f - -C $shareName+ --totals';
> >
> >
> > And I used visudo to add:
> >
> > backuppc ALL = NOPASSWD: /bin/tar
> >
> >
> >  Hi, you've set visudo for the command /bin/tar but.......
> >
> > the error states that it is using  /bin/gtar, which it gleans from
> > $tarPath
> >
> >
> >
> > The error message says:
> >
> > Running: /usr/bin/sudo /bin/gtar -c -v -f - -C /home/School\ Intranet/ 
--totals .
> > Xfer PIDs are now 28657,28656
> > Password:
> > tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 
filesTotal, 0 sizeTotal
> >
> >
> >
> >
> > You'll need to match them up for it to work.
> >
>
> OK. I changed the visudo to /bin/gtar but it still gives the same error.
> I changed the share I wanted to backup to one with full permission and
> it still hangs.
>
> Running: /usr/bin/sudo /bin/gtar -c -v -f - -C /home/krsnendu/test/
> --totals .
> started full dump, share=/home/krsnendu/test/
> Xfer PIDs are now 8266,8265
> xferPids 8266,8265
> cmdExecOrEval: about to exec /usr/bin/sudo /bin/gtar -c -v -f - -C
> /home/krsnendu/test/ --totals .
>
> you can also still use rsync with sudo and a script called rsyncSend.
> >
> > See 
http://backuppc.sourceforge.net/faq/ssh.html#how_can_client_access_as_root_be_avoided
> >
> >
> > Can I use rsyncd? What tricks would be needed for that?
>


-------------------------------------------------------------------------
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/

Reply via email to