MySQLDumper-Board Forum Index Follow me on Twitter

Portal  •   Forum  •  Downloads  •  Profile  •  Search   •  Register  •  Log in to check your private messages  •  Log in  •  


 New installation - How to automate backup

Post new topicReply to topic
Author Message
DSB
Developer
Developer




Age: 41
Joined: 30 Apr 2004
Posts: 16073
Location: Reichenberg bei Würzburg


germany.gif

PostPosted: 2012-01-23, 17:23    (No subject) Reply with quoteBack to top

Then you have selected only one database on the multidump-screen.
Re-check the databases you want to backup and click "save" again.

_________________
Gruß / Greetings, DSB

Teigwaren heißen Teigwaren, weil sie Teig waren.
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.

OfflineView user's profileSend private messageSend e-mailVisit poster's website    
Anzeigen











Posted:    Anzeigen Back to top


    
rkleivel
knows MySQLDumper
knows MySQLDumper





Joined: 23 Jan 2012
Posts: 6


norway.gif

PostPosted: 2012-01-23, 17:25    (No subject) Reply with quoteBack to top

In fact - selecting =Multidump configuration= leaves only the first database in this array. ANY other selection (even just a single table) in fact leaves all tables in the array...
OfflineView user's profileSend private message    
DSB
Developer
Developer




Age: 41
Joined: 30 Apr 2004
Posts: 16073
Location: Reichenberg bei Würzburg


germany.gif

PostPosted: 2012-01-23, 17:34    (No subject) Reply with quoteBack to top

Ok, try replacing the file inc/functions.php with the attached one (remove the extension .txt), re-save your settings and tell me, if this is working.


functions.php.txt
 Description:

Download
 Filename:  functions.php.txt
 Filesize:  23.72 KB
 Downloaded:  11 Time(s)


_________________
Gruß / Greetings, DSB

Teigwaren heißen Teigwaren, weil sie Teig waren.
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.

OfflineView user's profileSend private messageSend e-mailVisit poster's website    
rkleivel
knows MySQLDumper
knows MySQLDumper





Joined: 23 Jan 2012
Posts: 6


norway.gif

PostPosted: 2012-01-24, 11:01    (No subject) Reply with quoteBack to top

OK - thanks a lot for helping out Smile

Unfortunately the new file did not help, so I started to debug... The problem occurs only when selecting database "=Multidump Configuration=" in Conficuration/Cronscript. If selecting All or just a single DB, it works fine.

Here are my findings, referring to line-numbers in the new functions.php:
Line 396-403 (//remove database we don't want to backup) seems somewhat odd to me. The array $cron_db_array at line 395 already contains exactly the databases I have selected for backup. Still the script wants to remove two databases from $cron_db_array. This would be fine if the keys of the two arrays $cron_db_array and $databases['Name'] refferred to the same databases. But since they don't, we end up removing two of the databases I want included in my backup.

Example data from my system at line 395:
$databases['Name']: Array ( [0] => d7 [1] => information_schema [2] => mysql [3] => mysqldumper [4] => ordet [5] => performance_schema [6] => phpmyadmin [7] => test [8] => upa_portalen )
$dontBackupDatabases: Array ( [0] => mysql [1] => information_schema )
$cron_db_array: Array ( [0] => d7 [1] => mysqldumper [2] => ordet [3] => phpmyadmin )

At line 406 after db's have been removed from $cron_db_array:
$cron_db_array: Array ( [0] => d7 [3] => phpmyadmin )

I ended up commenting out the unset-statement line 406-410, and now the expected DBs get backed up using the crondump. However I'd like you to verify if this is a useable solution as I've not taken the other arrays that get unset here into account...

OfflineView user's profileSend private message    
DSB
Developer
Developer




Age: 41
Joined: 30 Apr 2004
Posts: 16073
Location: Reichenberg bei Würzburg


germany.gif

PostPosted: 2012-01-24, 11:27    (No subject) Reply with quoteBack to top

Thanks for your debugging. Yes. It looks like you have found a bug.

But as we don't like this hard to maintain array-massacre Wink ourselves and since we are working on version 2, where we will do this completely differently, I don't want to investigate more time here. We also do not plan to release a version 1.24.5
If this is working for you, go and use it. Wink

_________________
Gruß / Greetings, DSB

Teigwaren heißen Teigwaren, weil sie Teig waren.
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.

OfflineView user's profileSend private messageSend e-mailVisit poster's website    
rkleivel
knows MySQLDumper
knows MySQLDumper





Joined: 23 Jan 2012
Posts: 6


norway.gif

PostPosted: 2012-01-24, 12:59    (No subject) Reply with quoteBack to top

Quote:
But as we don't like this hard to maintain array-massacre ourselves and since we are working on version 2

Got your point Wink
In which timeframe will v.2 be ready? I'm looking fwd to the option to exclude tables. That will make backups of drupal DBs much smaller as I can exclude the cache-tables...

OfflineView user's profileSend private message    
DSB
Developer
Developer




Age: 41
Joined: 30 Apr 2004
Posts: 16073
Location: Reichenberg bei Würzburg


germany.gif

PostPosted: 2012-01-24, 13:21    (No subject) Reply with quoteBack to top

« rkleivel » wrote:
Quote:
But as we don't like this hard to maintain array-massacre ourselves and since we are working on version 2

Got your point Wink

Wink

Quote:
In which timeframe will v.2 be ready?

I cant say. There still is a lot to do.
MySQLDumper2 is a complete rewrite based on Zend Framework and OOP (good bye good old PHP4 spaghetti code Wink).
We want to implement all the best practises containing CI, Tests, ect.
Escpecially the SQL-Browser will be a complete rewrite. In 1.24 it still is experimental and has some bugs. In v2 we want to add all possibilities to handle functions and procedures too. I can't say when this will be in a stable state. And while version 1.24.4 is running very stable for most users, we will take the time we need to finish this, without any hurry.

Meanwhile I published the translation gui of MySQLDumper as a stand alone os project ( http://otrance.org ) and so MySQLDumper had to wait some months.

But you can follow (or even join?) the project. We do have all the professinal tools a project like this needs.
Take a look here: https://mysqldumper.jira.com/secure/Dashboard.jspa
Browse/checkout code here: https://mysqldumper.jira.com/source/browse
Check the wiki here: https://mysqldumper.jira.com/wiki/display/MSD/Home

So you see, we are doing a lot for this project but as we are doing this in our spare time, we don't hurry. We want version 2 to be as stable as possible and also we will implement all the things we've learned in the last years. This includes bad design decisions like the array-thing. Wink

_________________
Gruß / Greetings, DSB

Teigwaren heißen Teigwaren, weil sie Teig waren.
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.

OfflineView user's profileSend private messageSend e-mailVisit poster's website    
Display posts from previous:      
Post new topicReply to topic


 Jump to:   


Show permissions
Similar topics
Topic Author Forum Replies Posted
No new posts Perl Backup immer Error 404 luckyheiko Fehler / Probleme 6 2012-05-23, 10:06 View latest post
No new posts Installation klappt nicht zanu Fehler / Probleme 11 2012-05-17, 10:19 View latest post
No new posts Installation auf Hetzner-Server missl... jester1966 Allgemeine Fragen zu MySQLDumper 3 2012-04-27, 15:33 View latest post
No new posts Nach Installation Shop weg Dieter Fehler / Probleme 3 2012-04-26, 19:14 View latest post
No new posts Ältere Beiträge und User aus früherem... abelius-kiel Allgemeine Fragen zu MySQLDumper 3 2012-04-22, 10:16 View latest post

 
CrackerTracker © 2004 - 2012 CBACK.de

Powered by Orion based on phpBB © 2001, 2002 phpBB Group
CBACK Orion Style based on FI Theme
All times are GMT + 2 Hours

phpBB SEO