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.

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

for examples.

regards,

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