Duplicate a Drupal installation from one server to another

I am developing a Drupal 6 site on my PC using XAMPP. I am done and everything looks strong.

The problem is that I need to host all the content (including custom modules and themes) on an intermediate server that has only fresh Drupal 6. I cannot imagine setting up all my own content types and much more on an intermediate server.

So, I ask: how to do what I need to do? This essentially duplicates my Drupal installation from my PC on the staging server.

Linux is running on the intermediate server, and I am developing on a Windows PC if that helps.

Thanks in advance.

+3
source share
4 answers

live mysqldump . , , settings.php, , - "localhost" mysql.

+3

- , , backup_migrate module. . phpmyadmin , . backup_migrate , (, ). .., , db. db . , node , .

0

subversion, (rsync, scp, whatever) db (mysqldump).

, , - :

  • ​​
  • ///
  • ///
  • ///( )
  • //

svn: externals, , "", .

2 4 , . , , , , , - ( !).

svn commit beta/staging/sandbox .

, [re] - , " svn co http://repolocation/reponame.", .

, :

  • svn git
  • , (, ..) , . .

, .

0

backup_migrate. .

, :

  • backup_migrate
  • /default/settings.php, .
  • import the last backup_migrate backup (usually using mysql <backupfilename.sql, if I don’t already have drupal settings and backup_migrate is not set, then I use the GUI

But look at the official version:

http://drupal.org/node/776864

Now you didn’t ask, but when the site lives, and users contribute their content, transferring future versions of your site from development / production to production without turning off live content is a completely different problem, and another Drupal does not have a good answer for ...

Andy -

0
source

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


All Articles