Created
June 15, 2018 23:44
-
-
Save mokanfar/c13a524c2b900da80143d81a52ee945f to your computer and use it in GitHub Desktop.
Magento correct upgrade path
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
git clone https://github.com/OpenMage/magento-mirror.git | |
cd public_html/shop | |
curl https://raw.githubusercontent.com/github/gitignore/master/Magento.gitignore > .gitignore | |
git init | |
git add --all | |
git commit -m 'backup' | |
git status | |
rsync | |
cd .. | |
ls | |
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/shop | |
cd .. | |
cd public_html | |
cd shop | |
php shell/indexer.php --reindexall | |
rm -rf var/cache | |
rm -rf var/session |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment