added to the repository on backup
tip
if you want to download from the frontend put this code in a snipet placed in a webgroup access private page,
second in cpanel or plesk.... password secure directory backup (very important because this script make accesible the last backup to the users normal) and put this code
$modx_backup_dir = $modx->config[’base_path’] .’backup/’;
$dir2 = $modx_backup_dir;
$files2 = array();
$open2 = opendir($dir2);
while ($file2 = readdir($open2)) {
if (preg_match("/_website_backup/",$file2)) $files2[] = $file2;
}
closedir($open2);
rsort($files2);
chmod($modx_backup_dir.$files2[0], 0777);
header("Location: backup/$files2[0]"); /* Redirigir al navegador */
exit;
sorry dont work wait some time hi
I always wondered if someone could fully automate back-up routine, updating the changes since the last back and also including all the relevent files in assets such as images, PDFs etc in addition to the database tables so that the user just has a one click back-up.
I would be interested in feedback on this if anyone has any suggestions
would be nice to have something like this as a core feature selectable in the config.
Great work
Great work xyz!
It is great to have full site backup system.
Thanks for sharing.
regards,
zi
updated now all in one archive, please update las code has some errors and dont delete zip files older and could full your webspace. hi.
updated for download last backup from frontend
hi