Linux shell script for database backup

后端 未结 10 1752
忘了有多久
忘了有多久 2020-12-02 04:59

I tried many scripts for database backup but I couldn\'t make it. I want to backup my database every hour.
I added files to \"/etc/cron.hourly/\" folder, changed its chm

10条回答
  •  被撕碎了的回忆
    2020-12-02 05:36

    You might consider this Open Source tool, matiri, https://github.com/AAFC-MBB/matiri which is a concurrent mysql backup script with metadata in Sqlite3. Features:

    • Multi-Server: Multiple MySQL servers are supported whether they are co-located on the same or separate physical servers.
    • Parallel: Each database on the server to be backed up is done separately, in parallel (concurrency settable: default: 3)
    • Compressed: Each database backup compressed
    • Checksummed: SHA256 of each compressed backup file stored and the archive of all files
    • Archived: All database backups tar'ed together into single file
    • Recorded: Backup information stored in Sqlite3 database

    Full disclosure: original matiri author.

提交回复
热议问题