Return to Snippet

Revision: 49060
at July 15, 2011 02:06 by eristoddle


Initial Code
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

Initial URL

                                

Initial Description

                                

Initial Title
Step 2 Move Magento

Initial Tags

                                

Initial Language
Bash