I have two Ubuntu machines, a laptop and a desktop.
What I wish to do is, to create a folder in both machines at paths 'path1' and 'path2'.
I want to set up sync between the two folders whenever they are connected to the same local area network (Desktop through Ethernet and Laptop through WLAN). So for example, if I create a file path1/x, it will also appear in path2 as path2/x.
Is there a way I can get this done? [It's ok if deletion sync doesn't work and I have to manually delete a file from both directories simultaneously]