Step 2 Move Magento


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. DOMAIN=domain
  2.  
  3. cd httpdocs/
  4. mkdir backup
  5. cd backup
  6. wget http://$DOMAIN/backup/local.xml
  7. wget http://$DOMAIN/backup/app.tar
  8. wget http://$DOMAIN/backup/data.sql
  9. wget http://$DOMAIN/backup/media.tar
  10. wget http://$DOMAIN/backup/skin.tar
  11. cd ..
  12. cp backup/app.tar app/design/frontend/default/
  13. cp backup/skin.tar skin/frontend/default/
  14. cp backup/media.tar .
  15. cd app/design/frontend/default/
  16. tar -xvf app.tar
  17. rm -rf app.tar
  18. cd ../../../../skin/frontend/default/
  19. tar -xvf skin.tar
  20. rm -rf skin.tar
  21. cd ../../../
  22. tar -xvf media.tar
  23. rm -rf media.tar
  24. cd ..
  25. mv backup/local.xml app/etc/
  26. rm -rf backup/
  27. rm -rf var/*
  28. chmod o+w var var/.htaccess app/etc
  29. chmod -R o+w media

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.