Skip to content

Instantly share code, notes, and snippets.

@jearle
Created March 18, 2015 04:50
Show Gist options
  • Save jearle/6bce63f86db335daf3ed to your computer and use it in GitHub Desktop.
Save jearle/6bce63f86db335daf3ed to your computer and use it in GitHub Desktop.
tar -zc --exclude wordpress/wp-content/themes/bucket-api/app/node_modules/ wordpress/wp-content/themes/bucket-api | ssh root@littlebigberry.com "cat > ~/file.tar.gz && tar -zxvf file.tar.gz && rm -rf /var/www/wp-content/themes/bucket-api/ && cp -r ~/wordpress/wp-content/themes/bucket-api/ /var/www/wp-content/themes/bucket-api/ && rm -rf file.tar.gz && rm -rf wordpress/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment