nyoncode/laravel-backup-manager

nyoncode/laravel-backup-manager

Powerful and extensible backup manager for Laravel applications: databases, files, encryption, integrity manifests and multi-destination storage.

0
Packagist stažení
0
Verzí
1.1.1
Aktuální verze
Závislosti
php ^8.3 ext-json * ext-openssl * illuminate/bus ^12.0|^13.0 illuminate/console ^12.0|^13.0 illuminate/contracts ^12.0|^13.0 illuminate/database ^12.0|^13.0 illuminate/filesystem ^12.0|^13.0 illuminate/queue ^12.0|^13.0 illuminate/support ^12.0|^13.0 nyoncode/laravel-package-toolkit ^2.1.1 symfony/finder ^7.0 symfony/process ^7.0

CLI reference

All commands accept --profile= to target a specific profile (default: the configured default profile).

backup:run

Create a new backup.

1php artisan backup:run
2php artisan backup:run --profile=nightly

backup:list

List stored backups for a profile's destination.

1php artisan backup:list
2php artisan backup:list --profile=nightly --disk=s3
Option Description
--disk= Override the destination disk to inspect

backup:restore

Restore a backup. Asks for confirmation unless --force.

1php artisan backup:restore
2php artisan backup:restore my-backup.tar.gz.enc --force
Option Description
--disk= Override the destination disk
--database Restore databases only
--files Restore files only
--only=* Restore only files under these absolute path prefixes
--no-verify Skip archive integrity verification
--force Do not ask for confirmation

backup:verify

Verify a backup's integrity against its manifest (checksum + signature) without restoring. Exits non-zero on failure.

1php artisan backup:verify
2php artisan backup:verify my-backup.tar.gz.enc

backup:clean

Apply the retention policy, deleting backups that fall outside it.

1php artisan backup:clean
2php artisan backup:clean --dry-run
3php artisan backup:clean --profile=nightly --disk=s3
Option Description
--disk= Only clean this destination disk
--dry-run Show what would be deleted without deleting

backup:monitor

Report the health of a profile's backups. Exits non-zero if any destination is unhealthy.

1php artisan backup:monitor
2php artisan backup:monitor --profile=nightly

Exit codes

Code Meaning
0 success / healthy
1 failure / unhealthy / verification failed