In ISPConfig manual, I learn how to sync directory from one server to another server as follows: Code: root = /var/www root = ssh://192.168.1.2//var/www As 192.168.1.2 is server2 and 192.168.1.1 is server1. If say for example I want to sync /backup from server1 to /backup of server2, how do I add this in current config? Thanks in advance
There is no difference in the current mirror config to what's described in the manual. And the mirrored directories and paths are configured in the unison configuration file. if you like to know more about how unison works, I recommend having a look into its man page.
Maybe you did not understand what I mean. I want to add more directories to be sync by Unison. An example of what I mean is if I can do something like this: Code: root = /var/www, /backup root = ssh://192.168.1.2//var/www, ssh://192.168.1.2//backup Or something like this: Code: root = /var/www root = ssh://192.168.1.2//var/www root2 = /backup root2 = ssh://192.168.1.2//backup Thanks for any help.
Unison works with root and paths, to understand how the software works, it's useful to read the man page as I suggested earlier. Example: Code: # Roots of the synchronization root = /var root = ssh://192.168.0.106//var/ # Paths to synchronize path = www path = backup This syncs /var/www and /var/backup. There might be other config options, so reading the man page and manual of the tool is recommended nonetheless. https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#roots