mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-28 09:53:48 +00:00
Update cheatsheets
This commit is contained in:
18
lsyncd
Normal file
18
lsyncd
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user