C
C
cyberlain2021-01-29 13:00:39
Backup
cyberlain, 2021-01-29 13:00:39

How to make a backup of a large site on Bitrix?

There is a site on Bitrix running in a virtual machine. The VM now occupies 100 GB, inside the Bitrix itself and the content of the site are about 80 GB. Of course, you can’t make a backup copy from the admin panel.
What are the solutions?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Adamos, 2021-01-29
@Adamos

Bitrix, like any other PHP site, is files and a database.
Copy the files (better archiving with a Linux archiver to save rights), dump the database.
Raise another server, make the same settings on it (Bitrix won’t do it for you anyway), unpack the files, upload the database dump. And it will work, it will not go anywhere.

D
Dmitry, 2021-01-29
@Tabletko

Make a full vm backup

A
Alexey Emelyanov, 2021-01-29
@babarun

Look in dbconn.php (.settings.php) for login, password and database name.
1. mysqldump -u DB_user -p DB_name > backup.sql
2. tar -czvf backup.tar.gz /home/bitrix/www/
* /home/bitrix/www/ - location of Bitrix files But keep in mind
that mysqldump by default leads to locking tables https://stackoverflow.com/questions/104612/run-mys... , be careful

G
ge, 2021-01-30
@gedev

Use rsync to copy files to another server or locally. Then you don't have to create archives on the source server (archiving 100GB will take a lot of time + time for subsequent transfer + the disk on the server is not infinite). A database dump can also be done without saving the file on the server (if it is very large), or save the dump and download it with the same rsync 'om.
There are actually a lot of ways.
Of course, if you do not know how to handle the console, it is better to entrust the matter to someone who knows how. And even better if this someone sets up automatic backups.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question