https://github.com/hmerritt/esync-script
A simple script that makes rsync super simple
https://github.com/hmerritt/esync-script
Last synced: 2 months ago
JSON representation
A simple script that makes rsync super simple
- Host: GitHub
- URL: https://github.com/hmerritt/esync-script
- Owner: hmerritt
- License: apache-2.0
- Created: 2021-01-07T23:06:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-08T23:42:06.000Z (over 4 years ago)
- Last Synced: 2023-03-05T07:20:31.440Z (about 2 years ago)
- Language: Shell
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Esync.sh
[](https://travis-ci.org/hmerritt/esync-script)
A simple script that makes `rsync` super simple.
## Getting Started
### Install Dependencies
Install script dependencies via `install` argument.```bash
$ sudo ./esync.sh install
```#### Bash on Windows
Thanks to `WSL`, you can run bash scripts on windows!- [Enable WSL (Windows Subsystem for Linux)](https://docs.microsoft.com/en-us/windows/wsl/install-win10)
## Usage
```bash
$ ./esync.sh$ ./esync.sh cat.jpg [email protected] /home/admin/images
```### Config
Create config via `init` argument.```bash
$ sudo ./esync.sh init
```#### Add server aliases
Server aliases are custom names for a server address```bash
esync.sh cat.jpg myserver /home/admin/images-->
esync.sh cat.jpg [email protected] /home/admin/images
```1. Open up the `esync.config` in `~/.config/esync.config`
2. Add the following line```bash
ESYNC_ADDRESS=$(sshalias "${ESYNC_ADDRESS}" "myserver" "[email protected]")ESYNC_ADDRESS=$(sshalias "${ESYNC_ADDRESS}" "anotherserver" "[email protected]")
^^ alias ^^ full server address
```
You can add as many aliases as you like (just add another line with a different alias)