Created
September 16, 2014 14:18
-
-
Save kaikousa/bf5ead17f93e6dbc52a9 to your computer and use it in GitHub Desktop.
Rsync selected files to a remote folder over SSH
This file contains hidden or 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
#!/bin/sh | |
# Copy index.html and dist-folder to a remote folder. Exclude everything else | |
rsync -auv -e ssh --progress . --include=dist/*** --include=index.html --exclude=* [email protected]:/home/user/public_html/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment