M
M
Maxim Volkov2019-04-02 17:09:41
Backup
Maxim Volkov, 2019-04-02 17:09:41

How to deploy a backup created using the VMBitrix v7.3 web environment?

Hello!
The site runs on VMBitrix v7.x. Every day, backups are created using the virtual machine in the /home/bitrix/backup folder , for example, the last file with the archive www_backup_sitemanager_01.04.2019_K78I62cF.tar.gz
Tell me how to deploy the backup created using the Bitrix Web Environment tools? Following the recommendations in documentation VMBitrix - does not work. I'm doing something wrong.
Where can I read more information? On the network, only information on how to work with backup using CMS Bitrix.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Volkov, 2019-04-16
@voland700

The question is closed. Perhaps this information will be useful for other users. I will describe the process of restoring a site or deploying it from a backup created during automatic backup using the Bitrix web environment.
During automatic backup of VMBitrix, the files with the backup archive are placed in the server directory /home/bitrix/backup/archive/www_backup_sitemanager_15.04.2019_8akRLwVX.tar.gz
1. Copy the backup to the root directory of the site:
2. Go to the directory of the site with the archive
3. Unpack the archive, restore the file system of the site.
4. Restore MySQL - Database.
Database dump when backing up using VMbitrix is ​​placed in the /home/bitrix/ directory in the form of two files - with the *.sql and *_after_connect.sql endings.
Also, these files are located in the archive itself in the /home/bitrix/ directory - from the root of the archive, if necessary, they can be extracted from there.
If the database is not broken, to restore it is enough to issue a restore command from the *_after_connect.sql file :
mysql sitemanager
< home / bitrix/mysql_dump_sitemanager_15.04.2019_8akRLwVX_after_connect.sql If
you need to completely restore the database, you must sequentially issue a command to restore two files: .sql 5. If you need to deploy the backup on another server with the Web environment installed, you will need to change the password for the database user. For one site in Bitrix web environment, a database will be created - sitemanager, with the user bitrix0.
The password for the bitrix0 user is automatically generated during the installation of the web environment, and accordingly will not match the old password in the Bitrix configuration files. You can view the old password in the Bitrix configuration files :
SET PASSWORD FOR 'bitrix0'@'localhost' = PASSWORD('PASSWORD');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question