Created
March 19, 2020 10:14
-
-
Save Kerollmops/2beb1927d8cff03b65e27904dfabfb2d to your computer and use it in GitHub Desktop.
Remote sync a cargo repository by using fswatch and ssh with a custom identity key.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fswatch --exclude '.git' --exclude 'target' . | while read num; do | |
rsync -azP --exclude=.git --exclude=target -e 'ssh -i ~/.ssh/id_rsa' . root@xxx.xxx.xxx.xxx:<DEST> | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment