PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > The PowWeb Platform > MySQL
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Search this Thread
Old 1-18-05, 12:35 PM   #1
IlyaZ
 
Join Date: Jul 2004
Location: Sweden
Posts: 64
Reputation: 5
Database Dumps

Hello,

my database dumps have recently been 0.3kb big. They are normally around 3500 kb in size. And the database is still containing much information, site works well etc. Very strange. However, how do I make a back-up of my database now?
IlyaZ is offline  
Old 1-18-05, 12:55 PM   #2
B&T
Just tryin' to help
 
B&T's Avatar
 
Join Date: Jan 2003
Location: along the journey
Posts: 8,036
Reputation: 125
Quote:
Originally Posted by IlyaZ
However, how do I make a back-up of my database now?
Use this script:
http://prettyworthless.com/tips.php?tip=sql_backups#tip
__________________
Enhance your PowWeb experience @ B&T's Tips & Scripts
Got some free time? You can find Nothing of Value @ PrettyWorthless.com
B&T is offline  
Old 1-18-05, 02:07 PM   #3
IlyaZ
 
Join Date: Jul 2004
Location: Sweden
Posts: 64
Reputation: 5
Thanks but what is Cron? And is this script secure?
IlyaZ is offline  
Old 1-18-05, 02:17 PM   #4
B&T
Just tryin' to help
 
B&T's Avatar
 
Join Date: Jan 2003
Location: along the journey
Posts: 8,036
Reputation: 125
Quote:
Originally Posted by IlyaZ
Thanks but what is Cron? And is this script secure?
Cron is a unix scheduler. Read this:
http://prettyworthless.com/tips.php?tip=cron_basics#tip

For security - make sure the script is above htdocs - cron can access it there - but not http. And it would be best to set up a mysql user with only lock and select rights to put in this script to do the backup - just in case someone else on your shared server is poking around. But yes, it is as secure as anything else on your shared server.
__________________
Enhance your PowWeb experience @ B&T's Tips & Scripts
Got some free time? You can find Nothing of Value @ PrettyWorthless.com
B&T is offline  
Old 1-18-05, 05:02 PM   #5
IlyaZ
 
Join Date: Jul 2004
Location: Sweden
Posts: 64
Reputation: 5
"$filename="/www/X/XXXXXX/backup$day.sql";"
This line, what is the dir X resp. XXXXXX? (I see no www either but I assume it's my root?) And won't other people be able to download it? It creates a copy and puts it on the server? Where do I put this script?
IlyaZ is offline  
Old 1-18-05, 08:57 PM   #6
B&T
Just tryin' to help
 
B&T's Avatar
 
Join Date: Jan 2003
Location: along the journey
Posts: 8,036
Reputation: 125
Quote:
Originally Posted by IlyaZ
"$filename="/www/X/XXXXXX/backup$day.sql";"
This line, what is the dir X resp. XXXXXX? (I see no www either but I assume it's my root?) And won't other people be able to download it? It creates a copy and puts it on the server? Where do I put this script?
Yes it is your document root.

I amswered the security questions in the post above yours. If you have any more, please ask. But the short form is no one can get to the script with http if you put it above htdocs.

Yes it puts the date named copy on the server. It is then up to you to ftp where you want to keep off-server backups (all 30 of them should be kept).
__________________
Enhance your PowWeb experience @ B&T's Tips & Scripts
Got some free time? You can find Nothing of Value @ PrettyWorthless.com
B&T is offline  
Old 1-19-05, 10:28 AM   #7
kanwulf
 
kanwulf's Avatar
 
Join Date: Nov 2001
Location: Indiana
Posts: 100
Reputation: 16
Those .3Kb database dumps are all empty. No data...

It's kind of hard to backup a dbase with no data.
__________________
-"Jeeps will get you through times of no women better than a woman will get you through times with no Jeeps."
kanwulf is offline  
Old 1-19-05, 11:49 AM   #8
IlyaZ
 
Join Date: Jul 2004
Location: Sweden
Posts: 64
Reputation: 5
Ok I see, but how do I put something above the htdocs?
IlyaZ is offline  
Old 1-19-05, 12:00 PM   #9
mitchind
Older not wiser
 
mitchind's Avatar
 
Join Date: Nov 2003
Location: Calgary, AB
Posts: 2,473
Reputation: 205
Use ftp and change directory to the parent directory just "above" htdocs
mitchind is offline  
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:31 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.