# Example Windows Client config.pl File for Method 2 (RSYNCD over SSH) $Conf{RsyncdClientPort} = 873; # This directive allows us to have a different hosts file entry # on the same actual hostname. Also, we are forwarding local ports # to the remote Windows host via SSH so we use 'localhost' here. $Conf{ClientNameAlias} = '10.9.0.1'; # Here we undefine the preexec directive since this is derfined # in our main config.pl to dump mysql databases on a SME box. $Conf{DumpPreUserCmd} = undef; # We specify the remote host to ping here. Otherwise, BackupPC # will ping localhost. $Conf{PingCmd} = '$pingPath -c 1 10.9.0.1'; $Conf{XferMethod} = 'rsyncd'; $Conf{RsyncShareName} = 'cygdrive'; $Conf{RsyncdUserName} = 'svcwrsync'; $Conf{RsyncdPasswd} = 'apa8G2rE'; # Back up the whole share $Conf{BackupFilesOnly} = undef; # exclusions we use. notice how we avoid backup of removable media. $Conf{BackupFilesExclude} = ['c/cygwin', 'c/Program Files', 'RECYCLER', 'c/System Volume Information', 'c/TEMP', 'c/WINDOWS', 'c/WINNT', 'c/hiberfil.sys', 'c/pagefile.sys', 'a/', 'b/', 'd/', 'e/', 'f/', 'g/', 'h/', 'i/', 'j/', 'k/']; # example of other exclusions you should consider using # $Conf{BackupFilesExclude} = ['Temp', '/winnt/tmp', '/pagefile.sys', 'SvcwRsync', '/hiberfil.sys', 'Temporary Internet Files/', '*Cache/', 'Thumbs.db', 'IconCache.db', '~*', 'desktop.ini', 'NTUSER.DAT', 'USRCLASS.DAT', '/RECYCLER', 'Virtual Machines/']; # rsync commandline arguments for Windows hosts can include # --checksum-seed=32761 # We only need these rsync arguments here if they differ from the main config.pl. $Conf{RsyncArgs} = [ '--numeric-ids', '--perms', '--owner', '--group', '--devices', '--links', '--times', '--block-size=2048', '--recursive', '--checksum-seed=32761', ]; # We only need these rsync restore arguments here if they differ from the main config.pl. $Conf{RsyncRestoreArgs} = [ '--numeric-ids', '--perms', '--owner', '--group', '--devices', '--links', '--times', '--block-size=2048', '--relative', '--ignore-times', '--recursive', '--checksum-seed=32761', ]; # Set this to a high value so that BackupPC does not skip this host! $Conf{PingMaxMsec} = 2000; # Specify blackout period from 1:00am to 7:30pm local time on Mon-Fri. $Conf{BlackoutPeriods} = [ { hourBegin => 1.0, hourEnd => 19.5, weekDays => [1, 2, 3, 4, 5], }, ];