Skip to content

Instantly share code, notes, and snippets.

@mokanfar
Last active June 28, 2017 23:58
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 mokanfar/9c44e536e0d67575318a6ba725b7881d to your computer and use it in GitHub Desktop.
Save mokanfar/9c44e536e0d67575318a6ba725b7881d to your computer and use it in GitHub Desktop.
rsync magento-mirror repo to upgrade magento
cd ~
git clone https://github.com/OpenMage/magento-mirror.git
cd public_html
git init
curl https://raw.githubusercontent.com/github/gitignore/master/Magento.gitignore > .gitignore
git add --all
git commit -m 'backup'
cd ../magento-mirror
rsync -chavzP --exclude='./var/cache' --exclude='./.git' --exclude='./media/catalog/product/cache' --exclude='./var/tmp' --exclude='./var/session' --exclude='./var/report' --stats ./ ../public_html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment