Skip to content

Instantly share code, notes, and snippets.

@mokanfar
Created June 15, 2018 23:44
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/c13a524c2b900da80143d81a52ee945f to your computer and use it in GitHub Desktop.
Save mokanfar/c13a524c2b900da80143d81a52ee945f to your computer and use it in GitHub Desktop.
Magento correct upgrade path
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