-
Notifications
You must be signed in to change notification settings - Fork 453
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
Built in Database backup no longer works #571
Comments
Yep. Exactly what Ryan said – I'd add that we should gray out the button and show a tooltip if mysqldump can't be found, etc... add a path to mysqldump in the configure.php and check it exists, etc... This will actually be good, I think. I've held off on using the built-in backup stuff because I just didn't think it could handle a site of any size. Mysqldump is rock solid and I think having it use that as the engine is a good thing. |
I think mysqldump is a good stopgap solution, but I think that if we want to think a little further out we should be removing these sort of database engine dependencies if possible. It's not infrequent someone asks about using Concrete5 with their MSSQL database or postgres database and while that's not a target for c5 (yet), I think implementing a database dependent solution without more thought on it might end up wasting resources. |
https://github.com/heybigname/backup-manager maybe this could help ? |
That looks really handy. That'd definitely be the way to go. |
Any update on this as far as ETA / Priority of this feature? |
The backup manager requires php >= 5.4 it looks like |
Additionally, the backup manager requires mysqldump command. |
Sorry, not sure if we're talking about the same thing or not... I'm talking about /dashboard/system/backup/backup/run_backup Which has this:
Which doesn't appear to be implemented at all. |
How about this library? It's lightweight, no requirements, run without mysqldump command. |
At a glance, it looks great |
@hissy it does look like a pretty decent library, my biggest concern are timeouts. The library from what little bit i've read doesn't really provide a good way for concrete5 to backup 1 table per request or similar to better prevent timeout situations. I do think, however, that it might be an ideal candidate for a CLI command, with the hopes that those are less prone to timeout issues. |
I think cli command to backup would be a good solution to timeout issue. |
Also.. .this may be scope creep on this issue.. But I think a backup level option would be a great improvement too... I'm thinking something like
Far to often someone attempts to backup their database, thinking that's all they need to migrate their site from one host to another. Also, allowing for a fuller approach to backups where one could restore to a specific point in time could have great advantages from a Disaster Recovery perspective. |
These are excellent ideas. Having true full backup and a timeline backup within the UI would be a real asset to users. |
I've just started working of backup stuff. https://github.com/hissy/concrete5-5.7/tree/enhancement/database-backup I'd like to push it If we get |
I'd rather have on database backup that worked well and had a couple On Tue, Aug 25, 2015 at 6:54 AM, Takuro Hishikawa notifications@github.com
|
A package that does what Joe Meyer suggests would be great. |
@tduncandesign I think the goal here is to build something that's deliverable from a concrete5 interface. A shell script kind of falls outside of that, especially considering that some people might run on different environments where a shell script isn't an option (think windows hosts or shared hosts that don't allow them). That said, I'm sure if you posted what you had to the concrete5 forums there would be others interested and possibly even willing to help you refine it, especially with the lack of a solid backup option right now. |
Is this something that the core team is going to make a decision on, or is it up to the community to make a decision, do the work, and then request approval from the core team? I ask because Andrew's comments seem supportive, but hands off... |
Built-in backup ought to cover 70% of the cases, be easy to understand, and work well for sites of most size.
|
@aembler +1 to that |
Is backup manager still an option? If so, we should just go with that. We can enable backing up to external locations with config for power users and just expose the basics to end users with a button to download. It's 5.5.9+ so we'd need to do this in 8.0.0+ |
Backup Manager is a good solution, but it requires mysqldump and mysql command-line binaries. |
@hissy I'm not aware of a good solution that doesn't require command line executables (And I frankly wouldn't trust any). |
Here is a one. I agree that |
I'm not sure I believe that everyone who'd use this tool is only using it because mysqldump is specifically unavailable on their system. I imagine a large number of people a) don't know what mysqldump is b) don't know how to ssh into their server even if the server allows it c) just want to back up their database. I originally liked the idea of this being mysqldump based because it's a rock solid utility and it's fast. We work with some large databases. If mysqldump-php is really as reliable then a pure PHP solution is definitely compelling – but I don't think one that is based off of mysqldump is bad. Far from it. |
@aembler agreed on all points. Lets do some testing and figure out where mysqldump won't work. |
FWIW, I used mysqldump to do the dirty work in the 'Backup Database' job in this add-on. I'll probably get feedback about circumstances in which it won't work. |
The built in database backup no longer works since adodb has been replaced.
Implement a solution that uses mysqldump and fails gracefully if that system command is not able to be executed.
The text was updated successfully, but these errors were encountered: