mysqldump with db in a separate file

前端 未结 8 1678
生来不讨喜
生来不讨喜 2020-12-02 15:02

I\'m writing a single line command that backups all databases into their respective names instead using of dumping all in one sql.

Eg: db1 get saved to db1.sql and

8条回答
  •  暖寄归人
    2020-12-02 15:10

    Not an answer to your question, but take a look at the AutoMySQLBackup project on Sourceforge, instead of re-inventing the wheel. It does what you want, and offers a ton of additional features on top, including compression, encryption, rotation, and email notifications. I used it a while back and it worked really well.

提交回复
热议问题