PHP Classes

Backup only data?

Recommend this page to a friend!

      MySQL Backup  >  All threads  >  Backup only data?  >  (Un) Subscribe thread alerts  
Subject:Backup only data?
Summary:How can I backup only data not the structure?
Messages:2
Author:Alfredo Cueto
Date:2007-12-14 15:39:33
Update:2007-12-14 16:48:31
 

  1. Backup only data?   Reply   Report abuse  
Picture of Alfredo Cueto Alfredo Cueto - 2007-12-14 15:39:35
Hello Tozalakyan, I have a question: How can I backup only data not the structure?, because $backup_obj->struct_only = false; allows to backup all or only the structure, but I would like to backup only the data.
Thanks a lot for this nice class,
Best regards
Alfredo

  2. Re: Backup only data?   Reply   Report abuse  
Picture of Vagharshak Tozalakyan Vagharshak Tozalakyan - 2007-12-14 16:48:31 - In reply to message 1 from Alfredo Cueto
Hello Alfredo,

The current code do not allow to create only INSERT statements without CREATE TABLE. It is done so in order to avoid primary key conflicts that may occur during the executing of INSERT staements. Sure, if you want you may slightly modify the source - just comment out table structure creation or add a member-based condition.

Regards,
Vagharsh