Skip to content

Instantly share code, notes, and snippets.

@rightfold
Created May 14, 2014 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rightfold/8407ace5c8c09dddf30a to your computer and use it in GitHub Desktop.
Save rightfold/8407ace5c8c09dddf30a to your computer and use it in GitHub Desktop.
ssh www-data@you-will-never-know bash -c "
set -e
mkdir mss-unpack
tar -xf dist.tar.gz -C mss-unpack
mv mss mss-backup-${TIMESTAMP}
mv mss-unpack mss
cp mss-backup-${TIMESTAMP}/{.htaccess,robots.txt} mss
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment