2.13.3.9. Website transfer to Bitrix
About transfer
Bitrix has its own tools for creating a full site backup and restoring it. The instructions describe the procedure for creating an archive with a copy of the working site through its admin panel and deploying the resulting archive using the official recovery script.
Create archive
- Open the admin panel of the site you want to transfer.
- Go to section "Administration → Settings → Tools → Backup → Create backup".
- In the tab "Options» enable the option «Enable expert backup settings" and make sure the options are selected "Archive database", "Archive kernel" and "Archive the public part".
- In the tab "Backup » in field «Placement of the backup" choose "in the site folder", click "Create backup" and wait for the operation to complete.
- Download to your PC all parts of the resulting archive in one of the following ways:
- Through the site admin panel: go to section "Administration → Settings → Tools → Backup → Backup list", open the menu to the left of the name of the created backup and click "Download".
- Manually: through filemanager or any FTPclient open in root directory site subdirectory
bitrix/backup
and download all parts of the created archive.
Archive recovery
Before recovery:
- Download the official recovery script on your PC
restore.php
. - Through filemanager or any FTPclient upload the recovery script to the hosting in root directory site.
- Open the site in a browser by adding to its address
restore.php
(example -example.com/restore.php
). - Step "Preparing the archive". Click on "Next".
- Step "Uploading a backup». Turn on the option «The archive has been uploaded to the server root folder" (the option is available only if there is an archive in the site directory), select the name of the archive and click "Next".
- Step "Unpacking the archive". Wait until the unpacking of the archive is completed.
- Specify the data to connect to the database, click "Restore" and wait for the operation to complete:
- "Database server" — specify host (server) address databases.
- "Username" — specify Username (login) Database.
- "Password" — specify user password Database.
- "Database name" — specify title Database.
- "Create database if doesn't exist" - check the box.
- Edit the file
.htaccess
(if the installer says it kept the original.htaccess
entitled.htaccess.restore
then you can rename it back to.htaccess
and edit it):- Find the following line in it:
Options +FollowSymlinks
- Replace it with this:
Options +SymLinksIfOwnerMatch
- Clickon "Delete local backup and service scripts".
- Check the site is working.