Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Sail Db Backup

Sail Db Backup Laravel Package

revolution/sail-db-backup

A Laravel package for backing up and restoring databases in projects using Laravel Sail. It provides convenient Artisan commands for creating and managing database dumps without extra tooling.

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Sail Db Backup
What is revolution/sail-db-backup used for?
It is a Laravel package that provides Artisan commands for backing up and restoring databases in projects that use Laravel Sail. It is intended as a local development productivity utility that wraps Sail's Docker-based database services, so developers can create and manage database dumps without extra tooling. It is not positioned as a production backup solution.
How do I install revolution/sail-db-backup in a Laravel Sail project?
Install it as a dev-only Composer dependency with composer require --dev revolution/sail-db-backup, then run the package's Artisan commands through Sail. The package may offer an optional config publish step, but the exact command names and configuration should be confirmed against the repository README before standardizing. A short spike in a sandbox Sail project is the safest way to validate installation.
Which databases does sail-db-backup support, such as MySQL, MariaDB, PostgreSQL, or SQLite?
The provided evaluation does not confirm the full list of supported database engines, and it flags database-engine limitations as a key risk. The package depends on Sail container conventions and database client binaries, so support likely varies by engine and Sail version. Verify your specific engine, such as MySQL, MariaDB, PostgreSQL, or SQLite, in a sandbox before relying on it.
Is revolution/sail-db-backup suitable for production database backups?
No. The package is purpose-built for Laravel Sail local development and is not a replacement for production backup tooling such as spatie/laravel-backup, managed database snapshots, or infrastructure-level backup policies. Restrict it to local development and CI test databases, and use mature production backup practices for shared or production data.
Where does sail-db-backup write database dump files, and can I configure the path?
The evaluation notes that backup location and configurability should be confirmed, and it lists unencrypted backup artifacts and undocumented Docker assumptions as risks. The package may publish configuration that controls where dumps are written, but you should verify the default path, host versus container visibility, and file permissions. Add the backup directory to .gitignore and confirm paths work on macOS, Linux, and Windows/WSL2.
Does sail-db-backup support restoring a database, or only creating backups?
The package description states that it provides backing up and restoring databases in Laravel Sail projects. However, the evaluation specifically asks whether there is a documented restore path, so validate restore behavior into a clean database during your spike. Do not assume restore is fully documented or production-grade without testing.
Which Laravel, PHP, Sail, and Docker Compose versions does revolution/sail-db-backup support?
The provided context does not document exact version constraints, and the last release was in March 2024, so compatibility with newer Laravel and Sail releases is a real risk. Pin the package version and test against your team's current Laravel, PHP, Sail, Docker Compose, and database versions. Validate on each host OS your team uses, since container naming and volume behavior often differ.
How does sail-db-backup access database credentials and the Sail container?
The evaluation flags credential handling and undocumented Docker assumptions as risks, and it asks whether the package uses Laravel's DB configuration, docker compose exec, or direct container access. The exact mechanism is not confirmed in the provided context. Review the source and test credential handling in a sandbox, especially if your team has strict local secret management.
Is revolution/sail-db-backup actively maintained and safe to adopt?
Adoption evidence is thin: the evaluation cites 7 stars, 0 dependents, and a last release in March 2024, with single-maintainer abandonment as a primary risk. The MIT license provides a fork and escape hatch, which reduces long-term lock-in. Treat it as a convenience package requiring internal validation rather than a proven platform component.
What are alternatives to sail-db-backup for Laravel database backups?
Native alternatives include sail exec with mysqldump or the equivalent database client, docker compose exec, and existing team scripts. For production, use spatie/laravel-backup or managed database snapshots. Compare the package's output and convenience against a thin internal script before standardizing.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource