Backup MySql database with PHP

后端 未结 2 1247
北荒
北荒 2021-01-03 06:11

I have a pretty large db in MySql, and I need to take backups of it every day or so.

I need to be able to take backups from any computer, so therefore I thought abou

2条回答
  •  盖世英雄少女心
    2021-01-03 07:00

    I agree with OMG Ponies mysqldump + script is the way to go.

    The only other option that I use is to set up a slave server. This provides an almost instant backup against hardware failure and can be located in a different building to your main server. Unless you have a large number of writes to the database, you don't necessarily need a very powerful server as it is not processing queries, only database updates.

提交回复
热议问题