giza: Giza White Mage (Default)
So, I still need to release my backup module for Drupal 5. But I haven't had a chance to sit down and actually read the documentation.

But, awhile back, I developed my own command-line utility for backing up my own Drupal websites. Since it was quicker to clean that up and release it instead of waiting for me to Finish the Drupal 5 version of the module, I figured I would do that.

The program can be downloaded from here.

It needs to be run from the root directory of DOCUMENT_ROOT from the command line. It will automatically read in your default settings.php file to get the database credentials and create its own backup of the database. Then it will backup the webserver's filesystem and store both database backup and filesystem into a nice little tarball, ready for download via your web browser.

For those of you who are worried because the file is essentially world-readable, there is a random number appended to the database dump and the final backup to prevent an attacker from guessing the name of the file. (your webserver would fall over from the 404s before someone successfully guessed a filename)

Enjoy!
giza: Giza White Mage (Default)
I'm a big fan of FireFox, so when I was having problems with a project tonight that involved a 170 Megabyte download, I assumed that it was my code that was at fault. The symptom is that downloads would be incomplete. They would usually just... stop around 160 Megs or so. Of course, this only happened with large files. Files that were only say, 15 Megs were never a problem.

I tried all sorts of things including: different buffering schemes, different block sizes, and different HTTP headers, all with no luck. Finally, I did a Google search and found this. Yep, it appears that FireFox just isn't so hot downloading very large files. I did a test in Safari and, sure enough, it worked just fine.

One thing that does make my environment different, however, is that I was downloading the file locally, as the code was running on my machine. This resulted in download rates of ~6 Megs/second and may have simply been too fast for FireFox to handle. Oh well, time to look into alternative download managers, usleep(), and/or lots of swearing.

Profile

giza: Giza White Mage (Default)
Douglas Muth

April 2012

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
2930     

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags