Disable generation of "Backup is ready" via Message System

James2k

Verified User
Joined
Nov 28, 2012
Messages
18
Hi,

It it possible to silence the "Your Backup is Ready" messages in DirectAdmin? I have disabled email notifications but there doesn't seem to be an obvious way to disable the actual notification in the message system itself.

Is it possible to do this? I only ask as I run a daily cron scheduled user backup on a certain user on my VPS and keep one backup stored under the home directory for quick restore. (I use Admin backup for the whole server). This generates a backup notification each time.

If its not possible, perhaps a feature request?

Thanks,

James
 
Edit: /usr/local/directadmin/data/admin/backup.conf
Change last line:
message=yes
to
message=no

or... easy way...

in Admin Backups page, you should have some where a "settings" link... there you can uncheck the "send email to admin once backup done" or something like that...

Save. and.. voilà... (notify will be enabled just on backup fail... no notification on success...

Regards
 
Hi,

Thanks for your reply. I have both checkboxes within the Admin Backup section unchecked.

The actual "Backup Ready" message is generated on the specific users account so I don't think this setting applies here.

Thanks,

James
 
Hi John,

Thanks for bringing that API related command to my attention, I've implemented it into the backup script, hopefully should silence the message system messages.

Thanks,

James
 
Just wanted to say, this worked great, for anyone else interested, I use this script:

http://files6.directadmin.com/services/all/backup.php.txt

And modified the CMD_API_SITE_BACKUP array to add the additional parameter.

Original array:

Code:
$sock->query('/CMD_API_SITE_BACKUP',
	array(
		'action' => 'backup',
		'domain' => $domain,
		'select'.$c++ => 'domain',
		'select'.$c++ => 'subdomain',
		'select'.$c++ => 'email',
		'select'.$c++ => 'forwarder',
		'select'.$c++ => 'autoresponder',
		'select'.$c++ => 'vacation',
		'select'.$c++ => 'list',
		'select'.$c++ => 'emailsettings',
		'select'.$c++ => 'ftp',
		'select'.$c++ => 'ftpsettings',
		'select'.$c++ => 'database',
	));

Added this parameter at the start of the array:

Code:
'supress_message' => 1,

This now silences the message system but continues the backup as normal.
 
Back
Top