norman-huth/laravel-backup-telegram

This package is abandoned and no longer maintained. No replacement package was suggested.

Telegram notifications for spatie/laravel-backup

dev-main 2021-12-31 22:52 UTC

This package is auto-updated.

Last update: 2022-05-29 01:54:21 UTC


README

Install

Install and configure these packages:

composer require norman-huth/laravel-backup-telegram

Set up the Telegram receiver and notifications in the config/backup.php:

    'notifications' => [

        'notifications' => [
            \NormanHuth\LaravelBackupTelegram\BackupHasFailed::class => ['telegram'],
            \NormanHuth\LaravelBackupTelegram\UnhealthyBackupWasFound::class => ['telegram'],
            \NormanHuth\LaravelBackupTelegram\CleanupHasFailed::class => ['telegram'],
            \NormanHuth\LaravelBackupTelegram\BackupWasSuccessful::class => ['telegram'],
            \NormanHuth\LaravelBackupTelegram\HealthyBackupWasFound::class => ['telegram'],
            \NormanHuth\LaravelBackupTelegram\CleanupWasSuccessful::class => ['telegram'],
        ],

        'notifiable' => \Spatie\Backup\Notifications\Notifiable::class,

        'telegram' => [
            'to' => -1234567890,
        ],

        'mail' => [

Example: Mail & Telegram notifications:

        'notifications' => [
            \NormanHuth\LaravelBackupTelegram\BackupHasFailed::class         => ['telegram'],
            \NormanHuth\LaravelBackupTelegram\UnhealthyBackupWasFound::class => ['telegram'],
            \NormanHuth\LaravelBackupTelegram\CleanupHasFailed::class        => ['telegram'],
            \NormanHuth\LaravelBackupTelegram\BackupWasSuccessful::class     => ['mail'],
            \NormanHuth\LaravelBackupTelegram\HealthyBackupWasFound::class   => ['mail'],
            \NormanHuth\LaravelBackupTelegram\CleanupWasSuccessful::class    => ['mail'],
        ],