zigo928 / xtrabackup-manager

Automatically exported from code.google.com/p/xtrabackup-manager
Other
0 stars 0 forks source link

Spaces in backup job descriptions breaks cron #66

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
if you schedule backup job with "backup add" with a <backup_name> that contains 
spaces breaks the cron breaks as the quotes are not put into the crontab.  This 
causes the cron jobs to completely fail with email from cron with: Error: 
Invalid or incomplete parameters for the Scheduled Backup to run were given.

Fix is to change line 781 in includes/service.classes.php
from:
$cron .= $scheduledBackupInfo['cron_expression'].' '.$XBM_AUTO_INSTALLDIR.'/xbm 
backup run '.$hostInfo['hostname'].' '.$scheduledBackupInfo['name']." quiet\n";
to:
$cron .= $scheduledBackupInfo['cron_expression'].' '.$XBM_AUTO_INSTALLDIR.'/xbm 
backup run '.$hostInfo['hostname'].' "'.$scheduledBackupInfo['name']."\" 
quiet\n";

Original issue reported on code.google.com by brian...@gmail.com on 26 Jan 2013 at 12:06

GoogleCodeExporter commented 8 years ago
Title should have been "Spaces in backup job name breaks cron" (could not edit 
original title)

Original comment by brian...@gmail.com on 26 Jan 2013 at 12:09