Clan Adverts

www.clanthemes.com :: View topic - Automatic mysql database backup

 Welcome To Clan Themes 

As the board grows please remember the Search Option

We also monitor Private Messages to stop members from abusing our sites system.

Note!! Anyone thinking of spamming or posting senseless threads to make up their post count will be permanently banned we have a zero tolerance spamming policy here, you've been warned.

Automatic mysql database backup

7 Replies / 1454 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » General PhpNuke

View previous topic :: View next topic


LORAXX
Reputation: 6.5 Add RepSubtract Rep
Local time: 3:23 AM

blank.gif

Status: Offline
0.05 posts per day
Medals: 0

Joined: Jan 17, 2008
Last Visit: 18 Dec 2008
Posts: 43
Points: 718 

View user's profileSend private message Reply with quote

DoC
Reputation: 76.7 Add RepSubtract Rep
votes: 5
Local time: 8:23 AM
Location: UK
uk.gif

Status: Offline
0.38 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 27 Jan 2010
Posts: 428
Points: 4325 

View user's profileSend private messageSend e-mail Reply with quote

LORAXX
Reputation: 6.5 Add RepSubtract Rep
Local time: 3:23 AM

blank.gif

Status: Offline
0.05 posts per day
Medals: 0

Joined: Jan 17, 2008
Last Visit: 18 Dec 2008
Posts: 43
Points: 718 

Post Automatic mysql database backup Posted: Fri Feb 01, 2008 1:18 pm   

Shop Purchases:
Multi Gaming (Warrior) Theme · Clan Roster v1.7 Php Nuke Module

This is an excellent script. However, is it possible to change the format of the database backup? The database seems complete howerver, I think there is too much information since 1 - the file 50% larger than typical db backups (db exports), and 2 - the file does not import correctly.

Anyone else have this problem and solve it?

Recommend another automatic backup script?

Thanks
 

 
View user's profileSend private message Reply with quote




LORAXX
Reputation: 6.5 Add RepSubtract Rep
Local time: 3:23 AM

blank.gif

Status: Offline
0.05 posts per day
Medals: 0

Joined: Jan 17, 2008
Last Visit: 18 Dec 2008
Posts: 43
Points: 718 

Post Automatic mysql database backup Posted: Sun Feb 03, 2008 2:41 pm   

Shop Purchases:
Multi Gaming (Warrior) Theme · Clan Roster v1.7 Php Nuke Module

This advanced autoback is a great tease idea great but mysql file does not import even after changing TYPE=mysiam to ENGINE=myisam. I noticed floppy was on http://nukecoder.com/ site also looking for good auto backup script.

Anybody. Really want a good automatic backup script. Advanced backup is to dated and does not export correctly for import today.

Floopy what are you using? Did you get a work around.

Many thanks.
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 1139.5 Add RepSubtract Rep
votes: 28
Local time: 9:23 AM
Location: Great British Empire
uk.gif

Status: Offline
2.06 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Clan Themes Theme Guru
Clan Themes Theme Guru
Joined: Nov 13, 2006
Last Visit: 19 Mar 2010
Posts: 2515
Points: 100267 

View user's profileSend private messageSend e-mail Reply with quote

LORAXX
Reputation: 6.5 Add RepSubtract Rep
Local time: 3:23 AM

blank.gif

Status: Offline
0.05 posts per day
Medals: 0

Joined: Jan 17, 2008
Last Visit: 18 Dec 2008
Posts: 43
Points: 718 

Post Automatic mysql database backup Posted: Sun Feb 03, 2008 6:53 pm   

Shop Purchases:
Multi Gaming (Warrior) Theme · Clan Roster v1.7 Php Nuke Module

Ped,

The db doesnot import into phpadmin without error. So I found this on a forum post on nukecoders.

To fix this, open up includes/dump.php

Find

Code:
$structure .= ") TYPE=".$statusrow['Type'];


Change to

Code:
$structure .= ") TYPE=".$statusrow['Engine'];


I made these changes but it still does not import without error. The error is now different. Below is the error I get when I try to import into phpadmim:

Error
SQL query:

CREATE TABLE `nuke_nsnst_tracked_ips` (

`tid` int( 10 ) NOT NULL AUTO_INCREMENT ,
`ip_addr` varchar( 15 ) NOT NULL default '',
`ip_long` int( 10 ) unsigned NOT NULL default '0',
`user_id` int( 11 ) NOT NULL default '1',
`username` varchar( 60 ) NOT NULL default '',
`user_agent` text NOT NULL ,
`refered_from` text NOT NULL ,
`date` int( 20 ) NOT NULL default '0',
`page` text NOT NULL ,
`x_forward_for` varchar( 32 ) NOT NULL default '',
`client_ip` varchar( 32 ) NOT NULL default '',
`remote_addr` varchar( 32 ) NOT NULL default '',
`remote_port` varchar( 11 ) NOT NULL default '',
`request_method` varchar( 10 ) NOT NULL default '',
`c2c` char( 2 ) NOT NULL default '00',
PRIMARY KEY ( `tid` ) ,
KEY `ip_addr` ( `ip_addr` ) ,
KEY `ip_long` ( `ip_long` ) ,
KEY `user_id` ( `user_id` ) ,
KEY `username` ( `username` ) ,
KEY `user_agent` ( `user_agent` ) ,
KEY `refered_from` ( `refered_from` ) ,
KEY `date` ( `date` ) ,
KEY `page` ( `page` ) ,
KEY `c2c` ( `c2c` )
) TYPE = MYISAM AUTO_INCREMENT =4485;



MySQL said:

#1170 - BLOB/TEXT column 'user_agent' used in key specification without a key length


Any ideas? Could I get a copy of your dump.php file? NOTE: 144 of a 172 tables did import.

Thanks
 

 
View user's profileSend private message Reply with quote




LORAXX
Reputation: 6.5 Add RepSubtract Rep
Local time: 3:23 AM

blank.gif

Status: Offline
0.05 posts per day
Medals: 0

Joined: Jan 17, 2008
Last Visit: 18 Dec 2008
Posts: 43
Points: 718 

View user's profileSend private message Reply with quote

LORAXX
Reputation: 6.5 Add RepSubtract Rep
Local time: 3:23 AM

blank.gif

Status: Offline
0.05 posts per day
Medals: 0

Joined: Jan 17, 2008
Last Visit: 18 Dec 2008
Posts: 43
Points: 718 

View user's profileSend private message Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » General PhpNuke


 
7 Replies / 1454 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum