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
>
> [Documents&Settings]
>     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} = 'Documents&Settings';
> $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.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to