Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 764 Bytes

README.md

File metadata and controls

43 lines (31 loc) · 764 Bytes

ssh-sync

Script to sincronize a directory by ssh to a remote computer and watch for changes in any files inside the directory

$ cd ~/directory/to/sincronize
$ ssh-sync -i ~/ssh-key.pem -t /target/remote/directory -o <remote-ip> -u <remote-user>

Instalation

Install dependencies

Arch linux

# pacman -S coreutils inotify-tools rsync curl

Ubuntu

# apt install coreutils inotify-tools rsync curl

Install script

$ curl -s https://raw.githubusercontent.com/PieroNarciso/ssh-sync/main/install.sh | sh

Setup PATH

Add this inside .profile or .bashrc

if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

Uninstall

$ rm $HOME/.local/bin/ssh-sync