spatie/laravel-backup
Spatie Laravel Backup creates zip backups of your app files and database, storing them on any Laravel filesystem (even multiple). Includes health monitoring, notifications, and automatic cleanup of old backups. Run with php artisan backup:run.
PostgreSQL has the ability to produce binary database dumps via the pg_dump command, which produce smaller files than the SQL format and are faster to restore. See the full list of pg_dump flags.
To take advantage of this, you can set the extra flags for pg_dump on the database connection(s) in app/config/database.php.
//config/database.php
'connections' => [
'pgsql' => [
'driver' => 'pgsql'
...,
'dump' => [
...,
'add_extra_option' => '--format=c', // and any other pg_dump flags
]
],
Additionally, you can change the file extension of the database dump file to signify that it is not a text SQL file.
//config/backup.php
'backup' => [
...,
'database_dump_file_extension' => 'backup', // produces a FILENAME.backup database dump
],
How can I help you explore Laravel packages today?