Results 1 to 2 of 2

Thread: backup all database, but restore to one..possible?

  1. #1

    Default backup all database, but restore to one..possible?

    I was wondering if its possible to use the "all-database" backup option to backup all the databases, but if one DB gets corrupted or whatever, I can just restore to that one DB.


  2. #2


    Yes, you can restore only the databases you specify:

    mysql-zrm  --action restore --source-directory /var/lib/mysql-zrm/back-upset1/20060818121532 --databases db1 db2 db3
    In my testing I have found that it will restore the shared InnoDB tablespace (ibdata1) and transaction logs (ib_logfile0 & ib_logfile1) even if the database(s) you select for restoration are MyISAM. I'm glad I discovered this on a test/dev box rather than in production. Perhaps it's a bug? I have attached the log.

    - Chris
    Attached Files Attached Files
    Last edited by cgrello; July 14th, 2009 at 12:56 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts