1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 19:02:09 +02:00
tldr/pages/common/lsyncd.md
parthzz 2b6aec9fa1
lsyncd: add page (#10789)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2023-10-04 02:56:53 +02:00

13 lines
558 B
Markdown

# 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}}`