Re: [BackupPC-users] rsync, Windows and multiple directories

2006-12-16 Thread Les Stott
Matt Miller wrote:
 I am using the BackupPc packaged rsync to backup WindowsXP computers. I
 want to backup 2 directories, My Documents and Desktop. From what
 I've read, the way to do this is create an rsync share of the user's
 Documents and Settings folder and then set $Conf{RsyncBackupFilesOnly}
  in the pc/host/config.pl file for the specific folders that you want to
 back up.
 What it's doing is backing up the whole Documents and Settings folder.
 I'm stumped...

 What's wrong?

 I'm using version 2.1.1-2sarge2 of backuppc (debian stable) and
 cygwin-rsyncd-2.6.8_0: Rsyncd for Cygwin downloaded from the BackupPc
 Sourceforge site.

 relevant part of C:\rsyncd\rsyncd.conf

 [DocumentsSettings]
 path = C:/Documents and Settings/username-goes-here/
 comment = stuff user wants backed up
 strict modes = false
 auth users = backuppc
 secrets file = c:/rsyncd/rsyncd.secrets
 hosts allow = ip.address.goes.here
 read only = false
 list = false

 and the computer's config.pl

 $Conf{XferMethod} = 'rsyncd';
 $Conf{RsyncdUserName} = 'backuppc';
 $Conf{RsyncdPasswd} = '';
 $Conf{RsyncShareName} = 'DocumentsSettings';
 $Conf{RsyncBackupFilesOnly} = ['/My Documents', '/Desktop'];
   

Your variable is defined wrongly.

it should be

$Conf{BackupFilesOnly} = ['/My Documents', '/Desktop'];


Two other things..

1. you may not need the leading slash either.
2. Try not to use  or other special characters in share names. You 
may run into trouble in future.

p.s.

you can also do this.it will help to keep your setups generic and 
easy to manage.

[DocumentsSettings]
path = C:/Documents and Settings
comment = stuff user wants backed up
strict modes = false
auth users = backuppc
secrets file = c:/rsyncd/rsyncd.secrets
hosts allow = ip.address.goes.here
read only = false
list = false

and the computer's config.pl

$Conf{XferMethod} = 'rsyncd';
$Conf{RsyncdUserName} = 'backuppc';
$Conf{RsyncdPasswd} = '';
$Conf{RsyncShareName} = 'DocumentsSettings';
$Conf{BackupFilesOnly} = ['*/My Documents', '*/Desktop'];

That way you get all pc users on each pc and you only need one config file.

Hope that helps,

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.phpp=sourceforgeCID=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] Backup of Virtuozzo machine taking 10 hours

2006-12-16 Thread Nils Breunese (Lemonbit)
Jesse Proudman wrote:

 Fourth, Any one know a better way to backup Virtuozzo besides using
 rsync?

Virtuozzo has its own backup tools apparently:

http://kb.swsoft.com/article_199_1244_en.html

Nils.

-
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.phpp=sourceforgeCID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] localhost backup problems Version 2.1.2

2006-12-16 Thread Krsnendu dasa

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


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
Tar exited with error 256 () status
Got fatal error during xfer (No files dumped for share /home/School Intranet/)
Backup aborted (No files dumped for share /home/School Intranet/)

When I run it from the command line it gives this message:

CheckHostAlive: returning 0.077
Running: /usr/bin/sudo /bin/gtar -c -v -f - -C /home/School\ Intranet/
--totals .
started full dump, share=/home/School Intranet/
Xfer PIDs are now 28639,28638
xferPids 28639,28638
cmdExecOrEval: about to exec /usr/bin/sudo /bin/gtar -c -v -f - -C
/home/School\\\ Intranet/ --totals .
Password:

It seems like it is waiting for a password or something. I tried entering
the root password but it didn't do anything.
-
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.phpp=sourceforgeCID=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] localhost backup problems Version 2.1.2

2006-12-16 Thread Les Stott

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.phpp=sourceforgeCID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/