1 fede Jun 07, 2024 01:42
3 fede Jun 12, 2024 00:54
Hi
What I do is to add the following code to the end of _heavy_db_maintenance.job.php (before return 1; / ok /)
load_class( 'maintenance/model/_backup.class.php', 'Backup' );
$results = Backup::start_backup();
And in _backup.class.php I added static to function start_backup.
But nothing happens...
4 fede Jun 13, 2024 02:12
Now it works
What I did was to copy start_backup(), backup_database() and has_included() functions from _backup.class.php (removing all $this->... and so on) into /tools/_maintenance.funcs.php (which is already loaded in _heavy_db_maintenance.job).
At the end of this program, I added
$results = start_backup();
And voilá! After optimizing all tables, the DB backup process starts and do its job.
5 amoun Jun 13, 2024 12:05
- It's a bit beyond what I want to learn, so glad you fixed it.
)
This thread is resolved.
Hi I'm not clear as to what that is, I never use 'crons' so you could enlighten me if you like. Exact details so I can try that to begin with.
Currently I can save my Database via a link via cPanel which is a bookmark on my browser.
I usually clear the [items-versions] and [sessions] before I back up, but it's only a 4 or 5 MB