Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Proposal] php artisan db:backup && php artisan db:restore #1635

Closed
tommymarshall opened this issue Jun 13, 2013 · 5 comments
Closed

[Proposal] php artisan db:backup && php artisan db:restore #1635

tommymarshall opened this issue Jun 13, 2013 · 5 comments

Comments

@tommymarshall
Copy link

php artisan db:backup

Pretty simple syntax. The first command will backup the DB and store it in app/storage/backups and timestamp it.

php artisan db:restore

The second will restore the most recent database or you can name the backup to restore.

Thoughts?

@davss
Copy link

davss commented Jun 13, 2013

Would be nice to consider giving files more meaningful names i.e. timestamp + custom_file_name as an option.

php artisan db:backup to_user_custom_file_name
php artisan db:restore from_user_selected_file_name

@crynobone
Copy link
Member

  1. What data type would you suggest it would store it as.
  2. With the suggested data type, would it be compatible with all supported database?
  3. Why not start as a package?

@schickling
Copy link

👍 Nice idea!

@taylorotwell
Copy link
Member

I think this would make a good package as @crynobone mentioned. It's a little more than we can take on in the core right now I think.

@schickling
Copy link

Hey @tommymarshall I created a package for that need.

You can find it here: https://github.com/schickling/laravel-backup
Please feel free to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants