You can install the package via composer:
composer require ziffmedia/laravel-mysql-snapshotsYou can publish the config file with:
php artisan vendor:publish --provider='ZiffMedia\LaravelMysqlSnapshots\MysqlSnapshotsServiceProvider'Note: the configuration file will lock writing new snapshots to disk to the production environment
while loading snapshots will be locked to the local environment.
artisan mysql-snapshots:listartisan mysql-snapshots:create dailyTo create snapshots, and automatically cleanup up old snapshots:
artisan mysql-snapshots:create daily --cleanupTo load the newest snapshot in the first available plan:
artisan mysql-snapshots:loadWith Plan:
artisan mysql-snapshots:load dailyAdditional options
--cached Keeps a copy of the snapshot so that you don't need to redownload it on the next run
--recached Downloads a fresh sql file, even if one exists locally, and then keeps it cached
--no-drop Do not drop all tables in the database before loading the snapshot
