To transfer a site from a remote server to a local machine, you can use the built-in backup creation tool, and the server-side restoration tool (restore.php).

Do the following to create a site backup copy. 

  • Open the backup creation form:

    Control Panel -> Settings -> Tools -> Backup.

    Select the desired mode and, if required, configure additional parameters using the "Advanced" tab.

  • Set the following parameters to fully copy the site from a remote server.

    • Back up gradually: on
    • Step: this parameter must conform the server parameter max_execution_time (usually 30).
    • Back up public files: on
    • Back up kernel files: on
    • Do not include files which size exceeds: 1024 (this will exclude files with size over 1 Mb)
    • Back up database: on
  • Click the Back up button.

     

  • After the back-up copy is created, download the file and the restore.php script the link to which is available at the page top:

     

  • Copy these files to the root directory of a web sever on your local machine.
  • Type http://your_site_name/restore.php in your browser and hit Enter.
  • In the new form, select the archive file and specify the unpacking time slice (according to the PHP settings, usually 30). Click Extract.
  • After the files are extracted, you will be prompted to provide the database connection settings (if you have chosen to back-up the database)
  • Click Restore and wait until the script finishes. (Sometimes, you will need to adjust the database connection parameters in /bitrix/php_interface/dbconn.php).
  • After the restoration is done, be sure to delete the following files to prevent site corruption:
    • /restore.php
    • /back-up file (*.tar.gz)
    • /bitrix/backup/database dump (*.sql)


 Creating back-ups | Course description | Creating back-ups using special scripts