Cleanup BackupBuddy Crons
Sample data: https://www.dropbox.com/s/po9eumafbejavoz/cron-data.txt?dl=0
<?php
// Get CRON data from dump file
$data = file_get_contents('http://localhost/cron-data.txt');
if( $data ) {
$u_data = unserialize( $data );
foreach( $u_data as $key => $value ) {
// Clean backupbuddy_cron events
if( is_array( $value ) && array_key_exists( 'backupbuddy_cron', $value ) ) {
unset( $u_data[$key] );
}
}
// return the cleaned data
echo serialize( $u_data );
}