Menu

Backup defined parts(the changed tables only)

2005-05-22
2013-05-30
  • Nobody/Anonymous

    I use this fine scripts since v.1.3
    and won't miss it any more

    Still there's one feature I would like to suggest

    in my case (and may be in others too) only some tables of the db could be changed by users.
    A lot of tables a staticly or could only be changed by admins, meaning I realy don't need to backup
    all tables all times.

    So if it would be possible to define only a few tables
    naming them somepart
    and backing them up named like
    dbname.somepart.date.gz

    like
    foreach ($somepart as $key=>$thatTable){
    if (in_array($thatTable, $allTablesDb)){
           backeUpPlease($thatTable);
       }

    /*
    maybe this feature
    would save someones time and traffic
    it would do so for me
    */
    anyway thank you spending your time in
    developing this nice little tool

    // a nightly owl was passing by  :-)

     
    • Dirk

      Dirk - 2005-05-26

      Maybe its possible to use the new $SYSTEM_VAR array for this. It is possible to add $SYSTEM_VAR['do_not_backup']="table1,table2,table3";
      Then we can check for tables which occurr in this string like you suggested in dump() in functions.inc.php.
      This would not backup the listed tables in none of the backups (all databases).
      Do you think you could live with that?
      I don't want to extend the 'configuration' page any more to keep pMBP as easy as possible.

      As I don't have much time at the moment and you seem to know PHP:
      Do you want to give it a try?
      Regards
      Dirk

       
    • Nobody/Anonymous

      I`m on the try
      this and other ways

      Thanks Dirk
      Regards
      // the nightly owl was passing by :-)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.