lsyncd: add page (#10789)

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
pull/23/head
parthzz 2023-10-04 06:26:53 +05:30 committed by GitHub
parent b3e0e79c2a
commit 2b6aec9fa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

13
pages/common/lsyncd.md Normal file
View File

@ -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: <https://github.com/lsyncd/lsyncd>.
- 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}}`