Last active
June 28, 2017 23:58
-
-
Save mokanfar/9c44e536e0d67575318a6ba725b7881d to your computer and use it in GitHub Desktop.
rsync magento-mirror repo to upgrade magento
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
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