Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-02-12 05:57:41
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
[request] Helpful, quick utilities?
I’m thinking of making a plugin that can handle doing various small database jobs, both for non-technical folks as well as shortcuts for the more knowledgeable. Yes, Rob’s db manager plugin/phpmyAdmin can do this, but it also does a lot more you might not want or need.
- Repair table(s). Checks to see if tables need repairing, and if so allows you to try repairing them.
- Clear Visitor Logs, either all or filtered.
Anything else anyone can think of?
Last edited by Mary (2009-02-12 15:10:07)
Offline
Re: [request] Helpful, quick utilities?
Hi Mary,
I agree that Rob’s plugin is great but also an overkill for most users…
This is what I use it for
- Repair individual tables
- Repair all tables
- Backup table
- backup db
If you offer a function to clear anything I would think that the visitor logs would be the only one which would be safe to do.
Txp currently has a gap regarding these maintenance functionalities especially for those who design sites for clients.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2009-02-12 12:13:40
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: [request] Helpful, quick utilities?
Hi Mary,
I’ve only really ever used the backup & restore functions, but for clients just the backup function would be sufficient.
What about scheduled backups? Or maybe, backup & email/ftp the backup file.
Offline
#4 2009-02-12 12:15:27
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: [request] Helpful, quick utilities?
gomedia wrote:
…What about scheduled backups? Or maybe, backup & email/ftp the backup file.
+1
Offline
Re: [request] Helpful, quick utilities?
Offline
#6 2009-02-12 12:36:25
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [request] Helpful, quick utilities?
A simple cron snippet is the best way to schedule backups. It’s not difficult and far more reliable.
As I understand it, Steve was beginning to work on his own version of Rob’s plugin, which would let you disable the drop and run sql portions, but he’s leaving…?
If that’s the case I could start work on two sep plugins: a remake of Rob’s plugin and then this one which you can let your user’s have at?
Offline
Re: [request] Helpful, quick utilities?
Mary wrote:
If that’s the case I could start work on two sep plugins: a remake of Rob’s plugin and then this one which you can let your user’s have at?
Lovely…
Offline
Re: [request] Helpful, quick utilities?
DB backup functionality on Rob’s plugin didn’t work properly on some hostings, many people reported.
While other functionalities worked as expected, the DB backup usually thrown enigmatic errors, like “Error 127” or “Error 2”. I will have to check Rob’s plug-in thread to find some posts reporting this issue (and some posts proposing solutions which worked for a few, but not for everyone).
I hope this issue can be addressed on a new version.
BTW, nice to see you back, and see you are inspired enough to write new plugins, Mary!
Have you think about adopting one of those poor little orphaned plugins Steve has left? :D
(If anyone hasn’t noticed it yet, I’m desperately thinking about the future of MLP… it can’t become abandonware… I/we should do something…)
Offline
Re: [request] Helpful, quick utilities?
maniqui wrote:
DB backup functionality on Rob’s plugin didn’t work properly on some hostings, many people reported.
While other functionalities worked as expected, the DB backup usually thrown enigmatic errors, like “Error 127” or “Error 2”. I will have to check Rob’s plug-in thread to find some posts reporting this issue (and some posts proposing solutions which worked for a few, but not for everyone).
True. In one of my sites Rob’s plugin refuses to back up the db. I do have a cron job going but I need to connect via ftp when I want access to the copy. Not that it is a huge problem but I like browsers better:)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#10 2009-02-12 14:08:53
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [request] Helpful, quick utilities?
Error 127 is mentioned in the comments here multiple times. Depending on how the plugin is written, you can try and soften the impact.
Some sites it just will not work on, either because the PHP functions the plugin can use are disabled and/or because safemode is enabled and the mysqldump function is not within the allowed executables directory. But the plugin could try and detect these things as much as possible and let you know what to look for.
Ah, Julián, one thing at a time. :D
Offline
Re: [request] Helpful, quick utilities?
A client-friendly version of the bits of Rob’s plugin that a client might need would be most welcome, thanks. Steve’s was good but was still a bit techie for your average site admin who wants to a) backup every now and again when their conscience tells them their disks might die, b) repair stuff if the site breaks, c) get rid of web crawler hits from the log table and leave the “real”(ish) customer impacts alone. Perhaps a rudimentary filter on the clearing of log files might be useful? (essentially doing where ip like '%blah%'
or where date < '2008-10-01'
)
And fwiw, I’ve had times when Rob’s plugin didn’t work too. Like Mary says, the host environment plays a big part, but other times it has worked better than phpMyAdmin’s export feature! In a recent migration, the phpMyAdmin import choked on umlauts and truncated the file, even with a UTF-8 text file. But ex/importing the tables via Rob’s plugin worked flawlessly. Go figure.
Last edited by Bloke (2009-02-12 14:46:47)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#12 2009-02-12 15:09:07
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [request] Helpful, quick utilities?
Good idea Stef, I’ll add that to the list. (And related, I’ve asked for a log plugin callback so we could prevent unwanted logging in the first place.)
Offline