Discussion:
[unison-users] Synchronizing folders in different paths
jeremy.l.martin@gmail.com [unison-users]
2016-11-09 13:36:18 UTC
Permalink
Let's say I need to synchronize two folders, called foo and bar, between two hosts. On the remote host, foo and bar live in different locations (for legacy reasons). On the local host, they live in the same place. In other words, I want to synchronize



remotehost:foo
remotehost:somefolder/bar


with


localhost:foo
localhost:bar


Right now, I have two separate Unison profiles specifying different remote roots. But it would be really nice to be able to do it in a single profile. Is this possible?



Any help would be appreciated. Thanks!
-Jeremy
Alan Schmitt alan.schmitt@polytechnique.org [unison-users]
2016-11-10 07:32:01 UTC
Permalink
Post by ***@gmail.com [unison-users]
Let's say I need to synchronize two folders, called foo and bar,
between two hosts. On the remote host, foo and bar live in different
locations (for legacy reasons). On the local host, they live in the
same place. In other words, I want to synchronize
remotehost:foo
remotehost:somefolder/bar
with
localhost:foo
localhost:bar
Right now, I have two separate Unison profiles specifying different
remote roots. But it would be really nice to be able to do it in a
single profile. Is this possible?
For such cases, one approach is to use symbolic links and the “follow”
configuration option. For instance, you could have a to_sync folder on
both systems, each containing symbolic links to foo and bar in the
respective locations. You would then have a profile like this:

root = root1
root = root2

path = to_sync
follow = Path to_sync

Would that help?

Best,

Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2016-09: 401.03, 2015-09: 397.63
Loading...