![]() |
SVN: web backups
I'm looking at the latest SVN trunk.
How can web backup works in a multi server setups? The client doesn't have write access to sys_datalog and web_backup tables so the following query will always fail: Code:
//* Insert web backup record in database |
About which file / line are you talking?
|
cron_daily.php
|
Ok, I will check that. The new permission scheme is not added yet to the installer, so it might be that some tables are not accessible yet.
|
I've added SELECT,INSERT,DELETE grants to web_backup table, but I don't see any grant for sys_datalog.
Is sys_datalog supposed to be different between master and client ? Actually, backup entries are stored on the client only. |
I've added a report for the bugtracker for this and we will review it until 3.0.5 gets released. The sys_datalog is used to sync information between master and client and the information about the backups are needed o master and client.
|
Quote:
The actual cron will write only to the client, seems to work because i'm able to see the backup list from the interface, but on the master there is no reference to these backups. I don't know why master should have the client backup list, maybe that the actual script is good as it is. |
Quote:
Quote:
|
Quote:
Code:
$app->dbmaster->datalogInsert('web_backup', $insert_data, 'backup_id');In this way, the backup item is wrote properly on sys_datalog on the client and never on the master. If this is correct, cron script is working properly. |
There is a error in the mysql library indeed, thansk for pointing that out. Ine the datalogSave function, it has to be:
$this->query($sql); instead of: $app->db->query($sql); and the two quote calls should be also to $this. I fixed that in svn. It currently works but it was not intended this way and I had not noticed it cause it worked. I will check the issue regarding permissions. |
| All times are GMT +2. The time now is 09:42. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.