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)

X-Fan 06-15-2002 12:48 PM

Well it's not working for me, and I have my full root path and full URL path entered.

I get the messages...

Quote:

Start MySQL Dump: done!
compress file: done!
delete not compressed file: done!

Before you can restore this file, you have to rename to backp.sql.gz:

Download File
But the file does not exist. And yes, my backup directory is chmodded 777.

Any ideas?

Birdie501 06-15-2002 01:22 PM

show me your variables!

X-Fan 06-16-2002 05:32 AM

Done, but I still don't understand why it would tell me it's done the various steps of the backup, then give me a link to the backup file, if you say my host may not support one of the variables?

BigJohnson 06-18-2002 11:43 AM

I get the

sh: mysqldump: command not found

Thing to in my error.txt file but the zip file is the correct file size but i never restored yet because i don't want to take the chance of screwing everything up. But i will restore when i need to but I am still lost in what i have to do to get this error out of the way or does it not matter?

BigJohnson 06-18-2002 11:46 AM

Hold on a sec the zip file is 35 bytes but the sql file inside is 0 byties with nothing inside of it ++++. What shoul i do? And also what is wrong with the database back up that 2.2.5 has already? I don't understand. I used that one before and that one works great for me

X-Fan 06-18-2002 12:13 PM

The 2.2.5 database backup always times out for me :(

fabz 06-20-2002 07:01 PM

I got this :

Start MySQL Dump:
Warning: Unable to fork [mysqldump -l --add-drop-table -h localhost -uroot -p bd_plongeur 2>forums/admin/backup/error.txt
...


what is the problem ?

fabz 06-20-2002 07:59 PM

oops... sorry !

wasn't working on the Windows test platform !

Now it's on the linux one, but the ISP has disabled the exec() function 8(

I must change ;)

Lovaboye 06-27-2002 02:38 AM

Help, i get the

Parse error: parse error, unexpected '/' in /home/lovaboy/public_html/wf/admin/template.php on line 842

whats wrong?

MalaK_3araby 06-28-2002 08:33 AM

Hi there

Thanks for a great hack Birdie501.

***************************
***************************
Some of you guys have the backup folder UNPROTECTED ..

at least PROTECT that folder with .htaccess ..

This is serious stuff .. so take it seriousley.
***************************
***************************

Keyser S?ze 07-01-2002 05:48 PM

could someone explain how this works, i made a backup of my database and am moving to a new one (server) but where do i put the database before i click "restore"??

X-Fan 07-15-2002 04:54 AM

Well I tried using skyline's suggestion of changing the path to the mysqldump command, and still no luck.

I can't use the default backup as it times out for me, and I can't use this because although it tells me it did the backup, there's no file!

I DESPERATELY need to back up my database. Can anyone help?!?!?

Birdie501 07-15-2002 06:52 AM

all i can say is:
Ask your hoster!

Sorry :)

X-Fan 07-15-2002 07:15 AM

So much for support for this hack, then.

Time to uninstall it.

Birdie501 07-15-2002 07:25 AM

Quote:

Originally posted by X-Fan
So much for support for this hack, then.

Time to uninstall it.

Hey, i dont know what functions your hoster provide!
The script works!!!!

So the reason has to be at your hoster! I am not your hoster so i don't know any details.

Why dont you ask your hoster first before posting that ++++?

X-Fan 07-15-2002 07:32 AM

I HAVE asked my host. mysqldump IS installed on my server. But your hack is NOT working!

TreizeAtreides 07-23-2002 06:41 AM

I tried to install the hack aswell but for some reason I can't acces the screen itself, ones I click the backup/restore tab it just gives a 404 error file not found can someone help me out here?
PHP Code:

$pfad="/home/planets/public_html/forum/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/forum/admin/backup/";                // [url]http://...[/url] with / at the end 


nghiasi 07-29-2002 02:23 PM

Why When I downloaded it is .txt rather than .gz?

Mystic Gohan 08-23-2002 09:17 PM

OK I am kinda angery about this also. I have a dabase I moved I saw this hack and was like WOOPI but I try to work it I upload my previous database from other host and on my new one I see that acceptance that it all went though right BUT I dont have my templates or anything back no style no nothin. any help?

Barret 08-26-2002 12:53 AM

Does this work for 2.2.6?

Slynderdale 08-26-2002 03:27 PM

If you have shell access you can use it to take a backup .sql. like made by this hack and esily restore it just have the backup on the server where you wanna restore the backup to and then open shell and type

mysql -uUSERNAME -p dbname < /path/to/dump.sql

and it should restore the database.


If you dont have a site that has shell i think www.fatcake.com gives out free accounts with shell, you also get 3 url's in case you dont like the fatcake one, you get a joker.net and so on one too.

wolfe 09-03-2002 10:31 PM

what if GZIP is desabled is here another way around it with no zip

Mithan 09-07-2002 03:33 PM

Hello, I am having problems with the restore feature.

It says "ok" for everything, but it doesn't actually restore anything.

The backup works fine.

Any idea what may cause this?

Thanks.

XtremeVigilante 09-16-2002 12:04 AM

I am having the exact same problem. The backup works perfectly and everything is there. But when I restore it says OK for everything but nothing is really restored.

XtremeVigilante 09-17-2002 03:54 PM

Well never mind. Birdie this hack is great I was just retarded and didn't hack the backup going intot he right folder.

Dark Shogun 09-29-2002 12:09 AM

When I click the download link it shows text. If you right click it and choose save as then it downloads but do you know how I can make it download by just regularly clicking on it?

Dark Shogun

Dark Shogun 09-29-2002 12:14 AM

Cancel the part about right clicking. My database is only 938kb and when I downloaded the zip file it was over 2mb's. When I downloaded it with DAP it downloaded 123.7kb which is probably right. Do you know what is wrong?

Dark Shogun

refertech 10-05-2002 11:55 AM

I keep getting:

mysqldump: Got error: 1045: Access denied for user:
'user@mysiteIPaddress (Using password: YES) when trying to connect

I know im using the right pass and user? I have email my host and they say i support all the requirements. But i keep getting this error text in my backup directory> Could it be because they require me to log in using ssh and not telnet?

Any help would be appreicated. This is a great hack.

Thanks,

Mark

XtremeVigilante 10-25-2002 01:31 PM

Help ASAP Please!!!!


$db_host="localhost";
$db_username="ldeacon";
$db_passwort="XXXX";
$db_name="ldeacon";
$pfad="/usr/local/apache/htdocs/public_html/upload/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://cgi-bin.spaceports.com/~ldeacon/upload/admin/backup/"; // http://... with / at the end
$dateiname=date('U'); // not to change!. Unique filename will be used


Get: File apache/htdocs/public_html/upload/admin/backup/backup.sql.gz not found!

What's wrong??

XtremeVigilante 10-27-2002 07:53 AM

Can anyone help??

Breeze 10-30-2002 01:08 PM

But I have telnet with them so it doesn't matter that much now. I have moved to a new server and need to restore without telnet (they don't allow it).

When I try running this hack on new server it saves an empty file with date.sql.gz it does not save the error file like it should.

Can someone tell me if this hack is trying to access mysql and maybe they are blocking it?
Is there some way to test what my new server will allow?

I am trying to learn this php / mysql stuff but my eyes keep blurring out on me :D

NTLDR 10-30-2002 01:51 PM

You may find that the script cannot connect, I've tried this one a server I didn't have SSH access to and it wouldn't restore at all. Check with your host and see if they allow you to use the exec command in PHP.

Breeze 10-30-2002 02:04 PM

Thank You for fast reply. I have been checking all over the net for the answer. I figured that exec() was going to be problem. Looks like they have it running in safe mode and using the /bin directory. I tried placing this in there:
<?
exec('mysqldump -u username -p password db_name > db_name.sql');
?>
It wouldn't allow me to do that so I tried cgi-bin and I got server error when I ran it.

Not that they will but if I ask them to turn on some feature of PHP what exactly would I say? So as not to sound too stupid.

Thanks again

NTLDR 10-30-2002 02:08 PM

You could try changing exec to system that may work. If not I suggest asking your host to import your database as they don't give you SSH access.

Breeze 10-30-2002 03:10 PM

Tried using system() as for the mysqldump it didn't work. Did get it to list a directory but that may be nothing.

I wonder if they can allow a mysqldump command without having to worry about security?

I noticed in the /bin folder there is a file named ls
When I tested this out:
<?php
system('ls / -l');
?>

It showed a list of files. Guess what I am trying to figure out is can my new host setup something that is secure to allow backingup/restore?

TheSaint-AeD 11-08-2002 01:49 PM

hmm...

my backup worked perfectly, but the restore doesn't work at all. I wanted to move servers using this, uploaded the compressed sql-file to my admin/backup directory on the new server, changed the variables, and clicked restore.

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

is the answer, but actually the db isn't restored.

ULTIMATESSJ 01-03-2003 08:11 AM

i'm getting the same error as TheSaint-AeD, so any chance of getting any assistance with this, i need to get a backup on with this hack, since my host has a 2MB upload limit and the host won't upload the backup for us

Birdie501 01-03-2003 09:34 AM

Hi,

i am sorry. Unfortunately I don't know how to help you!

AloneEagle 01-09-2003 07:44 PM

work with any version???

JHSoundZ 01-12-2003 11:38 AM

THANK YOU!!! THANK YOU!!!

our database just blanked and we cud not restore the data til we used this. the other admin is willing to bear your children if you wish. your rock! just saved us bout a weeks work getting it all back up.

he told me to add this on
- using winrar, you can gunzip the existing backup files taken from vb.


All times are GMT. The time now is 02:48 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.01327 seconds
  • Memory Usage 1,815KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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