Skip to content

Database only backup #15

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

Closed
laurencei opened this issue Mar 16, 2015 · 4 comments
Closed

Database only backup #15

laurencei opened this issue Mar 16, 2015 · 4 comments

Comments

@laurencei
Copy link

Is it possible to have an artisan command that is only for a DB Backup? Like in version 1?

I personally dont need my application backed up (I have it in Github) - I just want to dump my DB and save it locally + S3.

I can imagine other people would want to run the DB backup more frequently - and backup the app less often. So having the ability to run each command separately seems useful...?

@freekmurze
Copy link
Member

For now set source.files.include to an empty in array in the config file and no files, except the dump of the db, will be backed up.

A separate command to backup the db makes sense. I'll add it in the near future.

@laurencei
Copy link
Author

Cool - I'll do that - thanks.

p.s. I reckon have a command to backup only the app, a command to backup only the DB, and then a command which is for both to be run. That way it gives full flexibility for everyone...

@freekmurze
Copy link
Member

Version 2.0.6 introduces this command:

php artisan backup:run --only-db

@laurencei
Copy link
Author

@freekmurze - thanks - it works perfectly!

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

No branches or pull requests

2 participants