[Csync2] Using variables in configuration file

David Winslow david.winslow at serendipitynow.com
Tue Jul 14 19:29:08 CEST 2015


Is it possible to use variables in the csync2 configuration file.  

I want to synchronize files in a user’s home directory.

Example configuration below. I want to run this as root so as to not have a configuration/db for every user.

group home_dir_files {

	host rnd11 (rnd10);

	key /etc/csync-group.key

	include /home/$USER/cluster_configuration_file.txt

}

So as user, myuser, I would run

sudo /usr/sbin/csync2 -xvG home_dir_files

This is not working for me. Should it work? For now, I’ve created a group for each user since I only have two users right now. Obviously, this alternative is not a scalable solution.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/csync2/attachments/20150714/a9cecc6c/attachment.htm>


More information about the Csync2 mailing list