Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MySql
 backup 101
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 12 December 2006 :  03:56:38  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
I have access to everything since I run my own server, what I do now is this:

Access via phpmyadmin over the internet, export all data and table structure to a zip-file on my local computer.

What I want to do:

Have some automatic backup system that make a backup of the whole db and then some say put the backup on my computer at home.
I suppose I can do a scheduled mysql-command like "mysqldump --user admin --password=password mydatabase > sql.dump" and then have a scheduled ftp upload to my home computer but there must be a better way? =)

/Tribaliztic
- www.gotlandrace.se -

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 12 December 2006 :  03:58:31  Show Profile  Visit HuwR's Homepage
no, there isn't a better way
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 12 December 2006 :  04:26:53  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
not the kind of answer I was looking for =)

How do I setup an automatic ftp transfer then and how can I be sure the backup/transfer is completed successfully?

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 12 December 2006 :  04:54:23  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
I do something similar to what you want using MSSQL but it should be possible in MySql also.

Could you set up a shared folder on your local computer, create a windows user & password and grant the user full permissions to the folder (or at least Write permissions).

Setup a backup job in MySql Administrator on your server and specify \\your_ip_address\shared_folder as the backup directory. Supply the windows username & password you created earlier. Does your host supply any hosted backup storage ? It would be better to use it especially if your database is large.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.

Edited by - Podge on 12 December 2006 04:55:00
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 12 December 2006 :  06:37:36  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
Could I have a folder shared/mapped on my server over the internet?
I could put another drive in the server and store the backup there but would rather have it at home where I can store it on CD or something.

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 12 December 2006 :  18:56:43  Show Profile
I just have MySQL Administrator on my home workstation do an automatic scheduled backup of my hosted mysql db, the backup file is placed on my local disk. This runs nightly about 3AM, the job is done by the windows task scheduler. The only feature I'd like to see is some way to keep "rollover" backup files, something like linux's logrotate. This assumes the local computer is on and can establish a connection to the remote dbms server.



======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 12 December 2006 :  18:59:37  Show Profile  Visit HuwR's Homepage
it is not a good idea to have file and printer sharing enabled on a machine that is open to the internet, there are some pretty serious security issues involved with using shares/mapped drives
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 13 December 2006 :  03:20:08  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
quote:
Originally posted by Doug G

I just have MySQL Administrator on my home workstation do an automatic scheduled backup of my hosted mysql db, the backup file is placed on my local disk. This runs nightly about 3AM, the job is done by the windows task scheduler. The only feature I'd like to see is some way to keep "rollover" backup files, something like linux's logrotate. This assumes the local computer is on and can establish a connection to the remote dbms server.



This is more what I'm looking for. Is MySQL Administrator a free software? =)

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 13 December 2006 :  03:36:01  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Yes - http://dev.mysql.com/downloads/gui-tools/5.0.html

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07