On 11/26/05, Tom Trelvik <[EMAIL PROTECTED]> wrote:
Looking through the list archives, I can see things like this have
been discussed plenty before, but I couldn't find a straightforward
"this is a good working solution" kind of post, so I hope you guys
don't mind my asking.

Can someone share a sample host config file to back up a windows
machine using either rsync or rsyncd (and if rsyncd, could you share
the corresponding rsyncd.conf as well)?

I don't want to open up the entire hard drive with samba because
that's more of a security risk than I'd like to take on a laptop that
will also spend time on untrusted networks.

Thanks!

Tom

! Now to send it to the whole list !

I just started using backuppc a few days ago so don't take my word as gospel.  I lock down my Windows shares a little further than the whole C drive.  I don't like the idea of sharing my entire C Drive, especially with write enabled.

I used the default 'docs' share that is defined in the cygwin-rsyncd-2.6.2_0.zip file from sourceforge.  I remove the 'cDrive' share name, and then added a few more custome shares of my own.

You'll also note that I set the hosts allow to my backuppc server name.

Here's my rsyncd.conf file from my PC.
#
use chroot = false
max connections = 4
pid file = c:/rsyncd/rsyncd.pid
lock file = c:/rsyncd/rsyncd.lock

# Shares follow

[docs]

    path = c:/Documents and Settings
    comment = Documents and Settings
    strict modes = false
    auth users = super_secret_user_name
    secrets file = c:/rsyncd/rsyncd.secrets
    hosts allow = 192.168.0.10
    read >
    list = false

[backups]
    path = d:/backups
    comment = Backup Directory
    auth users = super_secret_user_name
    secrets file = c:/rsyncd/rsyncd.secrets
    hosts allow = 192.168.0.10
    strict modes = false
    read >
    list = false

[multimedia]
    path = d:/multimedia
    comment = Multimedia Directory
    auth users = super_secret_user_name
    secrets file = c:/rsyncd/rsyncd.secrets
    hosts allow = 192.168.0.10
    strict modes = false
    read >
    list = false
 
The only special line in my host config file is for the shares, everything else is pretty much standard.

###########################################################################
# General per-PC configuration settings
# (can be overridden in the per-PC config.pl)
###########################################################################
#
$Conf{XferMethod} = 'rsyncd';

#
# Level of verbosity in Xfer log files.  0 means be quiet, 1 will give
# will give one line per file, 2 will also show skipped files on
# incrementals, higher values give more output.
#
$Conf{XferLogLevel} = 1;

$Conf{RsyncShareName} = [ 'docs','backups','multimedia'];

$Conf{RsyncdClientPort} = 873;

$Conf{RsyncdUserName} = 'super_secret_user_name';
$Conf{RsyncdPasswd} = 'super_secret_password';

$Conf{RsyncdAuthRequired} = 1;

Hope this helps.

--
Chris
 


Reply via email to