public function onBackupStarted(BackupEvent $event)
    {
        $database = $event->getDatabase();
        $database->set('started', (new \DateTime())->format(\DateTime::RFC3339));
    }
public function onBackupStarted(BackupEvent $event)
    {
        $database = $event->getDatabase();
        $database->set('started', (new \DateTime())->format(\DateTime::RFC3339));
    }
public function onBackupStarted ( BackupEvent $ event ) { $ database = $ event -> getDatabase ( ) ; $ database -> set ( 'started' , ( new \ DateTime ( ) ) -> format ( \ DateTime :: RFC3339 ) ) ; }
Write information to database.

@param BackupEvent $event
Write information to database .