B
B
biryukovm2022-04-06 21:45:54
MySQL
biryukovm, 2022-04-06 21:45:54

Best way to automatically backup mysql?

Hello everyone, there is a question of finding the best way to backup for mysql

Can you suggest a way to automatically backup and after the backup is downloaded to a regular computer using ftp or in any convenient way

Tasks to consider

  • Server CentOS 7
  • Ability to work through ISPmanager
  • Protected operation of the backup handler
  • Automatic backup by CRON
  • The backup should not interfere with the operation of the site so that users can continue working without noticing it
  • The amount of data can reach up to 10GB in the database
  • Download to a regular computer + the ability to upload to the cloud

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Drno, 2022-04-06
@Drno

backup with a regular bash script , push
the script into cron
after the backup is done - using rclone copy to ftp or cloud or anywhere in fact

F
FanatPHP, 2022-04-07
@FanatPHP

Everything depends on the initial conditions.
If the conditions are "I passed by here, show me which buttons to press," then the solutions proposed above are most likely suitable. But on a more or less normal site (permanent entry in the database, transactions) the condition "The backup must not interfere with the operation of the site" will not be fulfilled.
In this case, you need to use percona
xtrabackup "the ability to work through ISPmanager".
The first is some kind of incomprehensible nonsense, but I just don’t know about the second. I have never used this garbage and do not recommend it to anyone.

A
Anton Shamanov, 2022-04-07
@SilenceOfWinter

mysqldump if you need a sql dump, otherwise you can just copy the directory with the databases

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question