In Ubuntu 14.04 systems I would like to store the same contents of a directory in two different hosts (1). This is to let the same person work on different workstations on the same LAN, having the same files available at any time, regardless of the workstation he decided to work with: they can be text files, configuration files, but also pdf
and so on. (2)
Both the workstations can use sshfs
, but not NFS. I need real-time (so no rsync), bi-directional (so no lsyncd) syncronization between the two directories.
Does exist a tool, or filesystem, which is able to perform this?
(1) This is also to make a backup: if one workstation is down, the other already has all the files. I don't need neither symbolic links, nor mount --bind
, because the contents should be stored in different devices.
(2) This is the main scenario. A unique USB key can be used, but often the number of files and their total dimensions are huge, so they would require a hard disk.
dirA
ordirB
could not simply be a symbolic link to its counterpart?dirA
on server B? Or, if on the same machine,mount --bind
it. Would that be acceptable?--bind
would not fit.