Something that can really keep 2 folders synced, not like rsync
which is more or less just an advanced cp
. I need to achieve this:
Have two systems s1 and s2, and folder "files" on both of them.
I need to make it so that when user "John" log on s1, create a folder "foo" inside of "files" folder, the syncing subsystem create this folder on s2 as well. Then do the same for files user "John" copy there and finally, if another user logon to s2 or s1 and delete the folder "foo" the syncing daemon would delete this folder on both servers.
Is there something that can achieve this? Is it even possible for rsync to do that? I don't need to simply just copy 1 folder on 1 system to another system, I need to achieve similar sync as which for example dropbox provides.
rsync
will allow you to 'proper sync' - mostly it's used for updating, but the--delete
option will delete files on destination that aren't present on source. – Sobrique Mar 17 '15 at 09:36