We have Linux Machine 1 - Directory1 (include all sub directories and files) We have Linux SFTP Machine 2 - Directory2 (include all sub directories and files)
I am looking for a solution / tool which can keep both directories in ABSOLUTE sync using SFTP only. If any file / folder gets added / modified / deleted on one side, it should replicate it on other side.
Solutions I cannot use : rsync - requires ssh connection (not possible because of security concerns) Solution I tried - lftp -> works smoothly for 1 way sync when only 1 of machine is writing / modifying files / folders. But lftp works erratically when both Machine 1 / Machine 2 are writing as well as modifying / deleting. Tried Apache Nifi , but thats an overkill and looking for a simpler solution , is possible.
Your help is highly appreciated!
sftp
andrsync
both use port 22 ssh access to move the bits? – J_H Aug 14 '23 at 23:41unison
, for example). Lock that in a chroot and you could be good to go. Would that satisfy your security concerns? – Chris Davies Aug 15 '23 at 07:19