Hi there,
On Tue, 31 Aug 2021, Gary L. Roach wrote:
... I have set up my installation with *rsyncd*. I think I am OK
dowh to "$Conf{RsyncSshArgs} = ['-e', '$sshPath -l root'];" ( Line
#1241 on my file). After that point, I am totally confused. The
instructions for "$Conf{RsyncShareName} = '/'; " would not work for
both debian and windoz 7.
It is sort of documented in the config.pl comments - at least if they
haven't been stripped out by some helpful GUI - but there's no example
for use with modules.
8<----------------------------------------------------------------------
# For $Conf{XferMethod} = "rsyncd" this should be the name of the module
# to backup (ie: the name from /etc/rsynd.conf).
#
# This can also be a list of multiple file system paths or modules.
# For example, by adding --one-file-system to $Conf{RsyncArgs} you
# can backup each file system separately, which makes restoring one
# bad file system easier. In this case you would list all of the mount
# points:
#
# $Conf{RsyncShareName} = ['/', '/var', '/data', '/boot'];
8<----------------------------------------------------------------------
When you use the rsyncd transfer method you have to give the name of
what rsync calls a 'module' (not a filesystem path) as the share name,
and that module must be predefined in the rsync configuration. I like
modules, they're flexible.
How does these settings effect the settings in the GUI.
Haven't a clue, I don't use the GUI.
I want to backup the /etc, /home, /root, /boot/grub, /opt, /run and
/var/www directories on the Debian machine ...
Here's one of my per-host config files, $Conf{RsyncShareName} contains
just a list (in fact a reference to an anonymous array) of modules.
8<----------------------------------------------------------------------
# On the server, rsyncd is started by xinetd when we connect. The
# auth info on mail6 is in '/etc/rsyncd.auth' which should only be
# readable by root on the server!
$Conf{XferMethod} = 'rsyncd';
$Conf{RsyncShareName} =
['Config','Homes','crontabs','usr_local_sbin','site_perl','usr_share_perl5_email'];
$Conf{RsyncdUserName} = 'ged';
$Conf{RsyncdPasswd} = 'redacted';
$Conf{BackupFilesExclude} = { 'Config' => [ '/etc/mail/old','/home/ged/junk' ]
};
8<----------------------------------------------------------------------
Here's the rsyncd.conf from the machine being backed up - the things
in [square_brackets] below are the 'modules'.
8<----------------------------------------------------------------------
[Config]
path=/etc
uid=root
gid=root
auth users=ged
secrets file=/etc/rsyncd.auth
[Homes]
path=/home
uid=root
gid=root
auth users=ged
secrets file=/etc/rsyncd.auth
[crontabs]
path=/var/spool/cron/crontabs
uid=root
gid=root
auth users=ged
secrets file=/etc/rsyncd.auth
[Mail]
path=/var/mail
uid=root
gid=root
auth users=ged
secrets file=/etc/rsyncd.auth
[site_perl]
path=/usr/local/share/perl/5.28.1/Sendmail
uid=root
gid=root
auth users=ged
secrets file=/etc/rsyncd.auth
[usr_local_sbin]
path=/usr/local/sbin
uid=root
gid=root
auth users=ged
secrets file=/etc/rsyncd.auth
[usr_share_perl5_email]
path=/usr/share/perl5/Email
uid=root
gid=root
auth users=ged
secrets file=/etc/rsyncd.auth
8<----------------------------------------------------------------------
You might be able to economize a bit on the rsyncd config options
cf. what I have here, I tend to go for the verbosely obvious rather
than the concise.
HTH
--
73,
Ged.
_______________________________________________
BackupPC-users mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/