Skip to content

Script to syncronize and watch files from local to remote machine by ssh

Notifications You must be signed in to change notification settings

PieroNarciso/ssh-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Script to syncronize and watch files from local to remote machine by ssh

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages