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

Add database backup/restore tasks through Capistrano #5

Open
joebew42 opened this issue May 3, 2015 · 3 comments
Open

Add database backup/restore tasks through Capistrano #5

joebew42 opened this issue May 3, 2015 · 3 comments

Comments

@joebew42
Copy link
Owner

joebew42 commented May 3, 2015

Add capistrano task for pulling and pushing database data. (Backup and restore operations). Maybe can be useful start from this gem https://github.com/sgruhier/capistrano-db-tasks or newer?

@joebew42 joebew42 changed the title Adding capistrano database tasks Adding backup/restore tasks through Capistrano Jul 11, 2015
@joebew42 joebew42 changed the title Adding backup/restore tasks through Capistrano Adding database backup/restore tasks through Capistrano Jul 11, 2015
@joebew42 joebew42 changed the title Adding database backup/restore tasks through Capistrano Add database backup/restore tasks through Capistrano Jul 11, 2015
@cmrd-senya
Copy link
Contributor

To be useful, https://github.com/sgruhier/capistrano-db-tasks requires to have a local database set up, it's more like mirroring than back up/restore. But it uses sql dumps to do that, so it's not hard to hack the gem in order to download dumps and upload the required. For example, the PR sgruhier/capistrano-db-tasks#50 adds a feature to just dump sql (but only remotely). Itself it is not very useful either.

So, how do you think it is supposed to work?

@joebew42
Copy link
Owner Author

joebew42 commented Apr 8, 2016

So, how do you think it is supposed to work?

We could start by submitting a PR in order to add the functionalty to download the dump sql. What do you think ? If you think that this can be a good starting point I can give a look to capistrano-db-tasks this weekend 👍

@cmrd-senya
Copy link
Contributor

Actually, simple dump&download still requires hacking the capistrano-db-tasks. Which I already did! Here is the PR: sgruhier/capistrano-db-tasks#87.

Later today I'll submit a PR here which adds capistrano-db-tasks in a way to support my PR as well. You can then check, if you are fine with it :)

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