How to back up magento for another installation

How to get all the information, product photos, settings, etc ... from one magenta to another?

A backup feature that is apparently not very good.

+3
source share
3 answers

Using SSH, you can take the following steps to back up and move Magento to a new site.

Make sure you are in root purple when you run the following commands

  • MySQL database backup

    mysqldump -h DBHOST -u DBUSER -pDBPASS DBNAME> data.sql

    DBHOST - Database host name, usually just localhost
    DBUSER - Database user with access rights to the database 
    DBPASS - The password for the database user 
    DBNAME - The name of the database that Magento is using 
    
  • Backing up the media directory with all product photos

    tar -cvf media.tar media / *

  • cd app/design/frontend/default/

    tar -cvf app.tar mytheme/

    mytheme

  • cd skin/frontend/default/

    tar -cvf skin.tar mytheme/

    mytheme

  • , :

    / .. /local.xml

  • , ,

    , phpmyadmin :

    mysql -h DBHOST -u DBUSER -pDBPASS DBNAME < data.sql

+7

Magento - PHP - Magento .

Magento , .

0

subversion or git, and a database dump makes it easy ... the only thing you need to change is moving domains so that the config_core_resource table is updated to the new url and local.xml with new db login information if necessary

0
source

Source: https://habr.com/ru/post/1732636/


All Articles