SunQuest
 
           MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old October 26th, 2003, 08:39 AM
iahmed iahmed is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: USA
Posts: 171 iahmed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 58 sec
Reputation Power: 6
MySQL Backup

I have a small MySQL database (25 M) on a shared Linux box hosted by a service provider.

I want to schedule a backup of this database on my Windows machine on a daily basis (example: everyday at 2 AM)

Are there any free scripts or low priced commercial software ($20-$50 for single user) to do this.

Please suggest me.

Thank You

Reply With Quote
  #2  
Old October 27th, 2003, 06:46 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Just write a script on the server that invokes mysqldump and redirects to a file. Then have your Windows box FTP in and grab the file every night. If you don't have cron access on the Linux box, write a PHPscript that your Windows box can access every night at 2 AM that runs the mysqldump command, and then, a little while later, have your Windows box FTP in to get the file.

Reply With Quote
  #3  
Old October 27th, 2003, 09:55 AM
iahmed iahmed is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: USA
Posts: 171 iahmed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 58 sec
Reputation Power: 6
Hi dhouston

Thanks for taking time to reply me.

Indeed, My Service provider doesn't allow to use commandline stuffs like following:

>mysqldump -C -h HOST -uUSER -pPASSWD Database[table] > c:\localpath


If I could execute the above command the problem would have solved :-)

Thank You very much for your kind respond.

Reply With Quote
  #4  
Old October 27th, 2003, 11:43 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Yikes, that stinks. It shouldn't be too hard, though, to use some of PHP's built-in functions to emulate what mysqldump does. For example, you could use the mysql_list_fields(), mysql_list_dbs(), and mysql_list_tables() functions to reconstruct the table creation statement, or at least to print some clues as to what the structure looks like. Then you could just select all rows from all tables and write out a bunch of insert statements (or just a CSV or tab-delimited file). Send all this to a text file and have your Windows box run a scheduled task to download.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > MySQL Backup


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway