Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mateogianolio/sshync
Auto-sync files or directories over SSH.
https://github.com/mateogianolio/sshync
Last synced: 7 days ago
JSON representation
Auto-sync files or directories over SSH.
- Host: GitHub
- URL: https://github.com/mateogianolio/sshync
- Owner: mateogianolio
- License: mit
- Created: 2015-09-21T12:42:28.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-27T16:59:04.000Z (almost 2 years ago)
- Last Synced: 2024-10-02T07:29:02.100Z (about 1 month ago)
- Language: JavaScript
- Size: 486 KB
- Stars: 818
- Watchers: 18
- Forks: 34
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# sshync
Auto-sync files or directories over SSH using [**rsync**](https://github.com/mattijs/node-rsync) and [fs.**watch**()](https://nodejs.org/docs/latest/api/fs.html#fs_fs_watch_filename_options_listener).
![Animated usage GIF](example.gif)
Exclude files or directories by creating `.sshyncignore` in your source root (see repo root for example).
Default **rsync** options:
* `a` – archive mode
* `v` – verbose
* `u` – update
* `z` – compress```bash
$ npm install sshync -g# Optional: Copy local SSH key to destination
# OSX: $ brew install ssh-copy-id
$ ssh-copy-id
``````bash
# initialize sshync
$ sshync
source: local source file/folder.
destination: remote destination file/folder.
```