2 amoun Jun 08, 2024 21:53

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...
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.
)
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