From 2b6aec9fa100a2405f57c4caf0e0f847c99f3764 Mon Sep 17 00:00:00 2001 From: parthzz Date: Wed, 4 Oct 2023 06:26:53 +0530 Subject: [PATCH] lsyncd: add page (#10789) Co-authored-by: K.B.Dharun Krishna Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/lsyncd.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pages/common/lsyncd.md diff --git a/pages/common/lsyncd.md b/pages/common/lsyncd.md new file mode 100644 index 000000000..428e7fa52 --- /dev/null +++ b/pages/common/lsyncd.md @@ -0,0 +1,13 @@ +# lsyncd + +> Watch files and directories and run `rsync` when they change. +> It is often used to keep two directories on separate systems in sync, ensuring that changes made in one directory are immediately mirrored to the other. +> More information: . + +- Watch the source for changes and run `rsync` to synchronize files to the destination on every change: + +`lsyncd -rsync {{path/to/source}} {{host::share_name}}` + +- Use SSH instead of `rsyncd` shares: + +`lsyncd -rsyncssh {{path/to/source}} {{host}} {{path/to/destination}}`