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)

ZiRu$ 05-10-2002 12:45 PM

PHP Code:

$pfad="d:/gearhost/hostingaccounts/lfgs/www/test/admin/backup";                           // root without / at the end
                    // If you don't know the root, just upload root.php on your server and call it!
$download_url="http://www.mysite.com/test/admin/backup/";                // [url]http://...[/url] with / at the end 

but thats not the real path........

this is
d:\gearhost\hostingaccounts\lfgs\www est\

see it has backslashes instead of forward slashes

ZiRu$ 05-11-2002 05:20 PM

man please i need HELP!

ZiRu$ 05-11-2002 05:51 PM

Here's what i think is wrong
PHP Code:

// ###################### Start Dorestore #######################

if ($HTTP_POST_VARS['action']=="dorestore") {

if(
file_exists($pfad."/backup.sql.gz")==1):
  
$programm="mysql";
  
$parameter="--host=".$db_host." --user=".$db_username." --password=".$db_passwort." --database=".$db_name." <".$pfad."/backup.sql";

  echo(
"<b>decompress backup:</b> \n");
  
exec("cd ".$pfad$lines$result);
  
exec("gzip -d ".$pfad."/backup.sql.gz"$lines$result);
  echo(
"done!<br>\n");

  echo(
"<b>restore file to database:</b> \n");
  
exec($programm." ".$parameter$lines$result);
  echo(
"done!<br>\n");
else:
  echo(
"<b>File <font color='red'>".$pfad."/backup.sql.gz</font> not found!</b> \n");
endif;



I tought for my host i need to switch all the "/" to "\"
But it still don't work! I changed all the "/" to "\" before backup.sql

and that never worked.....So is there any chance you could Re-Write the Dorestorecode for me so that It dosen't Have and "/" and instead on this line

PHP Code:

$pfad="d:\gearhost\hostingaccounts\lfgs\www\test\admin\backup";                           // root without / at the end 

i can put the \ at the end

Thanks in Advance...

ZiRu$ 05-11-2002 06:23 PM

now it says:

decompress backup: done!
restore file to database: done!

but it never actually did it.....and it wont backup either......it says its fine but it's actually not....it dont create a file

Birdie501 05-12-2002 01:46 PM

Hey sorry i dont know how to solve your problem! You should ask your hoster because i think there is the problem!

machiavelli33 05-23-2002 10:38 PM

Quote:

Originally posted by skyline2002

in some server ,The path to the 'mysqldump' command on the will be: /usr/local/mysql/bin/mysqldump

By the way,thx Birdie501 , Great hack!!!!
enjoy!!!

hey Skyline...can you explain this part again?

How do you change the mysqldump to another command? Is that something the site server can do or can it be modified in the hack?

skyline2002 05-24-2002 03:45 AM

Quote:

Originally posted by machiavelli33


hey Skyline...can you explain this part again?

How do you change the mysqldump to another command? Is that something the site server can do or can it be modified in the hack?

you dont have the permission to turnon or off the mysqldump function if you rant the webspace by a hoster.

you may ask your hoster for the dir of the command.

i just changed the dir. the command still is mysqldump!

Finan 05-24-2002 10:57 PM

I've had this work under 224 and 225... Only problems where my own typos :o Great hack :)

freakyshiat 06-09-2002 02:41 PM

my mysql database is on a different server. will this hack work with it?

nitro 06-13-2002 07:17 PM

hmmm i suggested this @ vbulletin.com forum ages ago

they categorically stated it will make no difference php will still time out

and the restore will be incomplete and php backup is not 100% reliable

so i learnt telnet

its not difficult unless of course yer host dont have telnet but a host with mysql an no telnet imo is like a bacon butty with no bacon

of course i hope the hack works ok 4 u all iv downloaded it incase i ever need it i certainly dont have the knowledge to write it myself


All times are GMT. The time now is 09:13 PM.

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.01064 seconds
  • Memory Usage 1,752KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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