From 8df5e02c18f0d7c52ee6e7f6a6bb5ab18269aea9 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Mon, 12 Feb 2024 18:08:32 +0900 Subject: [PATCH] Deploy `/etc/lsyncd/lsyncd.conf.lua`. --- .../files/home/kazu634/works/lsyncd.conf.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cookbooks/kazu634/files/home/kazu634/works/lsyncd.conf.lua diff --git a/cookbooks/kazu634/files/home/kazu634/works/lsyncd.conf.lua b/cookbooks/kazu634/files/home/kazu634/works/lsyncd.conf.lua new file mode 100644 index 0000000..7f63d9b --- /dev/null +++ b/cookbooks/kazu634/files/home/kazu634/works/lsyncd.conf.lua @@ -0,0 +1,16 @@ +settings { + logfile = "/var/log/lsyncd/lsyncd.log", + statusFile = "/var/log/lsyncd/lsyncd.status", + statusInterval = 20, + nodaemon = false +} + +sync { + default.rsync, + source = "/home/kazu634/works/mnt/", + target = "kazu634@192.168.10.200:/volume1/homes/kazu634/Drive/Shared/project/", + rsync = { + archive = true, + compress = true + } +}