vikjam / equate

Simple wrapper for rsync to ease two-way syncing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

equate

Simple wrapper rsync to ease two-way syncing (and get notified via Notification Center!).

Installation

# Install required gem
gem install thor
# Clone repository
git clone https://github.com/vikjam/equate.git
# Change directory to repository
cd equate
# Use thor to install for system use
thor install equate.thor

Usage

# Push files to remote server
thor equate push "Scripts"
# Grab files from remote server
thor equate --remote "remote-name" --path "/prefix/path" pull "Tables"

Update

# Change directory to git repository
cd equate
# Pull updates
git pull
# Reinstall equate for command line use
thor install equate

Shortcuts

Add alias te='thor equate' to your .bash_profile or .bashrc file to save some keystrokes.

You can create SSH keys to avoid entering your password each time. The folks over at Digital Ocean have a good tutorial. Just make sure you have your permissions set correctly.

Finally, you can create a SSH config file to make it easier to SSH into your remote machine. Nerderati (and probably many others) have a quick tutorial on this.

About

Simple wrapper for rsync to ease two-way syncing


Languages

Language:Ruby 100.0%