From 99a682f4cdab4146990c0ed3447f542c90667a8e Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Wed, 8 Dec 2021 18:28:03 +0100 Subject: [PATCH] add advanced ssh example --- examples/lrsyncssh-advanced.lua | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 examples/lrsyncssh-advanced.lua diff --git a/examples/lrsyncssh-advanced.lua b/examples/lrsyncssh-advanced.lua new file mode 100644 index 0000000..4bd8bb9 --- /dev/null +++ b/examples/lrsyncssh-advanced.lua @@ -0,0 +1,35 @@ +settings { + logfile = "/home/lsync/job1/lsyncd.log", + statusFile = "/home/lsync/job1/lsyncd.status", + insist = true +} + +sync { + default.rsyncssh, + source = "/data/projects", + host = "offsitehost", + targetdir = "/data/projects", + excludeFrom = "/home/lsync/job1/lsyncd.exclude", + delay = 5, + rsync = { + verbose = true, + inplace = true, + _extra = { + "--info=progress2" + } + }, + ssh = { + identityFile = "/home/lsync/.ssh/id_rsa_new", + options = { + User = "poelzi", + StrictHostKeyChecking = "no", + Compression = "no", + Cipher = "aes256-gcm@openssh.com" + }, + _extra = { + "-T", + "-c", + "aes256-gcm@openssh.com" + } + } +} \ No newline at end of file