vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   MySQL Database Backup/Restore Hack Ver. 1.0 (https://vborg.vbsupport.ru/showthread.php?t=37655)

Birdie501 04-19-2002 10:00 PM

MySQL Database Backup/Restore Hack Ver. 1.0
 
################################################## ###############
MySQL Database Backup/Restore Hack Ver. 1.0
for all versions! tested with vb 2.2.5
Release Date: 20.04.2002
by Birdie501
Credits to: Jens Dutzi
################################################## ################

What this hack does:

You can backup and restore your mysql database via Admin CP!
Lot of people have problems to restore their database du to server timeouts!
With this hack you will never have any problems!
But anyhow you will use this hack with your own risk!

Requirements: Unix, GZIP, MySQL, MySQLDump

I am not a programmer! I just tried to implement this feature into my vbulletin and it works!
Maybe some of you, have the possibility to improve this hack! You are welcome!

Enjoy guys=))

Birdie501 :cool:

just updated the instructions for the root path!
zip file updated!

Birdie501 04-20-2002 01:17 PM

This is how it looks like!

Birdie501 04-20-2002 01:17 PM

Screen 2:

Birdie501 04-20-2002 01:21 PM

Screen 3

Birdie501 04-20-2002 01:22 PM

and screen 4

EchoHype.com 04-20-2002 02:42 PM

Thanks man!

I needed something like this, and now I have it =)

Austin Dea 04-20-2002 04:29 PM

Wow, what an awesome idea :D.

Austin Dea 04-20-2002 04:59 PM

Quote:

$download_url="http://"; // http://... with / at the end
what url do we put there?

Question:Why are the edits in template.php? Shouldn't they be in backup.php or something o_O?

Birdie501 04-20-2002 05:50 PM

Quote:

Originally posted by Austin Dea


what url do we put there?

Question:Why are the edits in template.php? Shouldn't they be in backup.php or something o_O?

Hi Austin Dea,

you should put the url where your backup folder is!

example: http://www.test.de/forums/admin/backup/


Well you are right, first i had an backp.php, but i think it is better in template.php because it is easier to install and the design fits better to the admin cp!

But the most important thing is: It works :classic: :D

Austin Dea 04-20-2002 05:57 PM

I get a 404 File not found when i click download file:'(...

Birdie501 04-20-2002 06:04 PM

when you put the mouse over the link, what url do you see?

Austin Dea 04-20-2002 06:05 PM

<a href="http://www.razael-central.com/forums/admin/backup/1019329010.sql.gz" target="_blank">http://www.razael-central.com/forums...9329010.sql.gz</a>

Birdie501 04-20-2002 06:10 PM

in variable declaration , did you forget to put a / at the end in download url?

Birdie501 04-20-2002 06:15 PM

If you have a look to you forum via ftp, where is the sql.gz file saved to?

in admin folder?

Austin Dea 04-20-2002 06:16 PM

It's not saved anywhere I don't think...

Yeah I don't see it anywhere...like it's not even saving..

Birdie501 04-20-2002 06:20 PM

please try to put the exact url to the root path:

root/forums/admin/backup

Austin Dea 04-20-2002 06:22 PM

o_O

Is what I have not right?

Edit: K, me and Birdie501 worked it out over pm's. Great hack!

Alfo 04-20-2002 09:23 PM

great hack

when doing the restore i had a problem but the name you specified to rename the db was wrong it should be backup.sql.gz
not backp.sql.gz

Great hack though

SoliduS_cF 04-20-2002 11:38 PM

When i click on the do backup, it progress's to the next screen as normal, but when i goto rename the file to backp.sql.gz there is no such file on the server, i have followed the included instructions, share any light on this buddy ?

techno 04-21-2002 12:23 AM

Simply Sweet!!

Austin Dea 04-21-2002 05:19 AM

Quote:

Originally posted by SoliduS_cF
When i click on the do backup, it progress's to the next screen as normal, but when i goto rename the file to backp.sql.gz there is no such file on the server, i have followed the included instructions, share any light on this buddy ?
I had this problem.

Be sure your pfad variable is

your root(as called by root.php)/forums/admin/backup

So you have to have the root deal, plus the path to the backup directory (without the slash at the end)

then your
download_url=www.yourdomain.com/forums/admin/backup/


Also, you don't have to rename it when you back it up (unless your changing it to the date (what i do)). You only need to make it backup.sql.gz when you are restoring from a backup =P.

Birdie501 04-21-2002 01:12 PM

Hey Austin Dea,

thanks for the support :-)))

Psychdrone 04-21-2002 09:11 PM

ok what am I doing wrong??? (this is a grate hack by the way, if I can get it to work!!!!)

I cencered my sites url, by replacing it with Mysite for privacy

OK heres what I got, when I click on the download button I get thi

http://www.mysite.com/forum/admin/ba...9426678.sql.gz
and its a blank page:(


heres what I put in for my root path
home/myusername/public_html/forum/admin/backup

and heres what I put in for the download link
http://www.mysite.net/forum/admin/backup/

What am I doing wrong, please help!!

Austin Dea 04-21-2002 09:56 PM

Is home/myusername/public_html/ what the root.php calls?

212rikanmofo 04-21-2002 11:40 PM

you said this hack on works on unix? so i guess it wont work under windows?

Birdie501 04-22-2002 06:51 AM

Quote:

Originally posted by 212rikanmofo
you said this hack on works on unix? so i guess it wont work under windows?
Hi,
well my hoster has a unix server so i am not sure if it works with windows. Maybe someone should try and confirm.

Birdie501 04-22-2002 02:59 PM

mmmhh,

i just wondering that the zip file has been downloaded for (up to now) 45 times! Where are these guys! Would like to hear if there are bugs....

Thanks!

Psychdrone 04-22-2002 05:42 PM

Heres what it says
// $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $ // $$ call this file to see your root path $$ // $$ Birdie501 $$ // $$ contact via PM on vbulletin.org $$ // $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $ /home/mysitesname/public_html

Please help me, and tell me what to fill in

Birdie501 04-22-2002 06:13 PM

Quote:

Originally posted by Psychdrone
Heres what it says
// $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $ // $$ call this file to see your root path $$ // $$ Birdie501 $$ // $$ contact via PM on vbulletin.org $$ // $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $ /home/mysitesname/public_html

Please help me, and tell me what to fill in

Here we go :-)

In the line of the root path, just fill in the root path plus the folders to your backup folder. In your example.

home/mysitesname/public_html/forums/admin/backup

your download url must be:

http://www.yoursite.com/forums/admin/backup/

thats all!

Austin Dea 04-23-2002 02:32 AM

Except it should be

"/home/mysitesname/public_html/forum/admin/backup"

and

"http://www.yoursite.com/forum/admin/backup/"

You forgot the first slash, and he has just forum for his directory, not forums.

:D

Birdie501 04-23-2002 06:10 AM

Quote:

Originally posted by Austin Dea
Except it should be

"/home/mysitesname/public_html/forum/admin/backup"

and

"http://www.yoursite.com/forum/admin/backup/"

You forgot the first slash, and he has just forum for his directory, not forums.

:D

you're right! Keep watching! :-)

It should be better if i don't spend too much time in fron of the computer :D

skyline2002 04-23-2002 06:40 PM

Quote:

Originally posted by Birdie501
################################################## ###############
MySQL Database Backup/Restore Hack Ver. 1.0
for all versions! tested with vb 2.2.5
Release Date: 20.04.2002
by Birdie501
Credits to: Jens Dutzi
################################################## ################

What this hack does:

You can backup and restore your mysql database via Admin CP!
Lot of people have problems to restore their database du to server timeouts!
With this hack you will never have any problems!
But anyhow you will use this hack with your own risk!

Requirements: Unix, GZIP, MySQL, MySQLDump

I am not a programmer! I just tried to implement this feature into my vbulletin and it works!
Maybe some of you, have the possibility to improve this hack! You are welcome!

Enjoy guys=))

Birdie501 :cool:

just updated the instructions for the root path!
zip file updated!

it is a nice hack, man!!
but i got a error message when i try to backup my forum database!

here is the message:
-----------------------------------
sh: mysqldump: command not found.
-----------------------------------

so what can i do with it ??

hope you can fix the problem. my web hoster is from www.Siteturn.com!!!
thank you so much!!!

Psychdrone 04-23-2002 07:17 PM

Damn I new this [better wash my mouth][better wash my mouth][better wash my mouth][better wash my mouth] was too good to be true!!

I get an invalid arch file when I try to open the zip:(

ZiRu$ 04-24-2002 03:19 AM

I was lookin forward to this hack but i think i'll wait till everyone gets there problems solved

Austin Dea 04-24-2002 04:34 AM

There are no problems for me...works fine :).

@skylinw2002-You might want to talk to your host bout that...

I don't know what Psychdrone's problem is, the zip is working fine for me.

skyline2002 04-24-2002 05:13 AM

ok thx, man i just sent a email to my web hoster!!

proton242 04-24-2002 06:44 AM

when i click on download i have this message:

# MySQL dump 8.16
#
# Host: localhost Database: mydatabase
#--------------------------------------------------------
# Server version 3.23.45

and my backup folder are empty...

Birdie501 04-24-2002 08:42 AM

@skyline2002

Hi, i am sure that this is a problem with your host! Maybe he doesn't support mysql dumps!!!

@proton
so you try this with your local server, what server do you use?
Here is the part of my file:
Server version 3.23.47-Max-log

Maybe it doesn't work with your older version?

@HotDogg
Well this isn't really a problem! If your hoster support all the needed functions it will work fine! Just have a try, you cant destroy anything!

ZiRu$ 04-24-2002 02:29 PM

Quote:

Originally posted by Birdie501

@HotDogg
Well this isn't really a problem! If your hoster support all the needed functions it will work fine! Just have a try, you cant destroy anything!

ok thanks! i will try it when i get home!!!

I will test it on 2.2.4

I am running on hostrocket as a server. Has anyone had any problems/or even tried this hack on hostrocket?

Does this eliminate if you were switching servers you wouldn't have to use telnet?

Cell Block 04-24-2002 05:52 PM

Let me get this right, with this hack i can restore my database if it had messed up, or if i've moved to a new server i can install the board and hack and then restore the board this way rather than using telnet or SSH?

I don't know but i may have mis-understood


All times are GMT. The time now is 04:49 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01523 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete