laravel-backup
Skill by spatie
Configures and extends spatie/laravel-backup for database and file backups, cleanup, health checks and notifications in Laravel apps. Built for developers who set up or monitor backups.
Install laravel-backup
Built from the published package, never by AI.
git clone --depth 1 https://github.com/spatie/laravel-backup /tmp/laravel-backup && mkdir -p ~/.claude/skills && cp -r /tmp/laravel-backup/resources/boost/skills/laravel-backup ~/.claude/skills/laravel-backupRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/spatie/laravel-backup /tmp/laravel-backup && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/laravel-backup/resources/boost/skills/laravel-backup ~/.gemini/antigravity-cli/skills/laravel-backupAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant guidance for configuring and extending spatie/laravel-backup, a Laravel package for database and file backups. It covers commands such as backup:run, backup:clean, backup:list and backup:monitor, along with scheduling them in routes/console.php. Settings in config/backup.php cover sources, destination disks, encryption and notifications. Database dumps can be customized per connection and compressed with gzip, and backups can be written to multiple disks such as local and s3.
The skill also shows how to write custom cleanup strategies, custom health checks and custom notifications by extending base classes from the package. It lists the events the package fires, such as BackupWasSuccessful and BackupHasFailed, and common pitfalls like forgetting to schedule backup:clean. It is aimed at Laravel developers who set up, monitor or extend backups in their applications.
Written from the project's SKILL.md and checked against it.
What it can do
- Run backupsUses backup:run with options for database only, files only, specific connections, disks and filenames.
- Clean old backupsUses backup:clean to remove old backups according to a retention strategy.
- List and monitor backupsUses backup:list to show backups and backup:monitor to check backup health.
- Schedule backup commandsShows how to schedule backup:clean, backup:run and backup:monitor in routes/console.php.
- Database dump customizationConfigures per-connection dump options such as excluded tables and single transactions.
- Dump compression and encryptionCovers gzip dump compression and password-based AES-256 archive encryption.
- Custom cleanup strategyExtends CleanupStrategy and implements deleteOldBackups to control retention.
- Custom health checkExtends HealthCheck and implements checkHealth to add monitoring rules.
- Custom notificationExtends BaseNotification and maps the class to channels in config/backup.php.
- Backup eventsDescribes events such as BackupHasFailed, CleanupWasSuccessful and UnhealthyBackupWasFound.
What you need
- A Laravel application that uses spatie/laravel-backup
- PHP with the ext-zip extension
- Mail, Slack or Discord set up for notifications (optional)
Try asking
- Write a custom cleanup strategy that keeps backups for one month.
- Add a health check that fails when fewer than 5 backups exist.
- Set up daily schedules for backup:clean, backup:run and backup:monitor.
Good to know
- The --only-db and --only-files options cannot be used together.
- The vendor and node_modules folders are excluded from file backups by default.
- The notification mail.to address must be configured after publishing the config.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: resources/boost/skills/laravel-backup/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to laravel-backup
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
laravel-backup: common questions
Does this skill cover both database and file backups?
Yes. It covers database backups, file backups and combined runs, and shows how to limit a run to only the database or only files.
Can backups be encrypted with this skill?
The skill shows a config setting that uses a password from BACKUP_ARCHIVE_PASSWORD and ZipArchive::EM_AES_256 encryption.
How are old backups removed?
The skill uses backup:clean with a retention strategy set in config, and shows how to write a custom cleanup strategy class.
How do I install laravel-backup?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is laravel-backup free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is laravel-backup safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to laravel-backup?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
