/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
DOMAIN=domain cd httpdocs/ mkdir backup cd backup wget http://$DOMAIN/backup/local.xml wget http://$DOMAIN/backup/app.tar wget http://$DOMAIN/backup/data.sql wget http://$DOMAIN/backup/media.tar wget http://$DOMAIN/backup/skin.tar cd .. cp backup/app.tar app/design/frontend/default/ cp backup/skin.tar skin/frontend/default/ cp backup/media.tar . cd app/design/frontend/default/ tar -xvf app.tar rm -rf app.tar cd ../../../../skin/frontend/default/ tar -xvf skin.tar rm -rf skin.tar cd ../../../ tar -xvf media.tar rm -rf media.tar cd .. mv backup/local.xml app/etc/ rm -rf backup/ rm -rf var/* chmod o+w var var/.htaccess app/etc chmod -R o+w media