Topic: Backing Up the Databases
Hi Robert
BACKING UP DATABASES
At my previous host I backed up my MySQL databases in the cPanel under "Files>Backups>Partial Backups>Download a MySQL Database Backup". Using this backup method I could very quickly and simply backup all my database files one right after another... boom .... boom .... boom, etc., very quick and easy. Restoring databases is almost as simple. Just hit the Browse button right there and upload and restore each database. I really like this method of backup and restore. No fuss, no hassle.
PROBLEM:
However, when I try to use the above backup method, the download file is only 20 bytes, instead of the several megabytes of the full-size database backup file. I have the same result on all the database files I try to back up. Is there some way to get this backup method working?
Stephen,
We do have some guides on using the command line to backup and restore MySQL databases, located here:
http://wiki.ocssolutions.com/Importing_ _Databases
I have not used command line instructions very much, if at all. I am still trying to figure out what this page means. I'm going have to read it more carefully and try to figure out what the instructions mean. For one thing, where do I enter those command line commands?
phpMyAdmin
I have used phpMyAdmin to export and import files to and from my computer, (although I'm not certain which all options/checkboxes I'm supposed to select.) and also to copy the contents of one database to another. (A great way to make a copy of the files to use for the test site). When trying to export a database as a backup, there are some many checkboxes to choose from, I'm not to sure which to choose. I'm still trying to study this out.
I did find this article How to backup your Mysql database with phpMyAdmin. This tutorial shows different checkboxes that are marked in the phpMyAdmin export window than what comes up when I go to the Export window in my phpMyAmin Window. So I'm a little confused as to which checkboxes should be chosen.
I really like my original version of backing up the databases because there are no checkboxes and no special keyboard commands. I really like just being able to click on a link and then start downloading the database files.
PUTTY
I have downloaded and installed puTTY, but am still struggling with it. It seems such a complicated way (that I haven't yet been able to figure out just to do a simple database backup. I'm trying to learn how to use puTTy and I'm trying to follow the instructions in you Wiki. So far I haven't yet got it figured out.
MY PURPOSE
Since I can't get my preferred method of database-backup to work, I'm experimenting with your other two methods that you suggested, trying out both PuTTy and the phpMyAdmin to find some way that will be relatively easy to back up all my databases each time. Perhaps there's a way to easily or automatically backup that databases that I don't yet know about.
Downloading and uploading large files can be a pain as well, but using tools like Tar and Zip might make this easier:
http://wiki.ocssolutions.com/Using_Tar_ e_Websites
I am very familiar with ftp using Filezilla and have used it quite a bit. I have usually used Filezilla to download individual files, archived folders, and the website Full Backup.
Best Wishes,
Stephen
Last edited by StephenW (Dec 24th, 2009 03:28:36 am)