Created
June 29, 2019 13:56
-
-
Save vans163/b08c9cff62e9f4cf7e82154649afb5b0 to your computer and use it in GitHub Desktop.
using lsyncd instead of sshfs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/axkibe/lsyncd | |
apt-get install cmake liblua5.3-dev lua5.3 | |
git apply << EOF | |
diff --git a/default-rsync.lua b/default-rsync.lua | |
index 106c58d..8157c26 100644 | |
--- a/default-rsync.lua | |
+++ b/default-rsync.lua | |
@@ -669,7 +669,7 @@ end | |
-- | |
-- By default do deletes. | |
-- | |
-rsync.delete = true | |
+rsync.delete = false | |
-- | |
-- Rsyncd exitcodes | |
EOF | |
cmake . && make | |
make install | |
lsyncd -nodaemon -insist -delay 0 -rsyncssh /localdir root@remote /remotedir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment