Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > General Hosting/Server Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
how do i restore files from old host to new host? Details »»
how do i restore files from old host to new host?
Version: , by Chicago_VLNU_4s Chicago_VLNU_4s is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-22-2006 Last Update: Never Installs: 0
 
No support by the author.

i just recently (30 mins ago) bought a new host due to my current host closing down shop. So i want to backup my public_html folder and switch it to the new host. But how do i do this? I'm clueless when it comes to this server crap!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-22-2006, 07:30 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only way i know is to download the public_html folder to your computer using your ftp program, then reupload to your new server...
Reply With Quote
  #3  
Old 09-22-2006, 07:50 PM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have SSH access? If not try getting it. If you cant get it. you'll have to do as bashy said,

Dump It
Code:
mysqldump -u username -p -h localhost database_name > database_name.sql
Back it up
Code:
tar cvf folder.tar folder_you_want_to_backup
Next move it
Code:
scp folder.tar username@new_host_ip_adress:/path/to/new/web_root
Unpack it
Code:
tar xvf folder.tar
Restore it
Code:
mysql -u username -p -h localhost database_name < database_name.sql
Sure that may look confusing or hard, but its simple as can be, and if you need help, let me know i'll move it for free for you without a problem
Reply With Quote
  #4  
Old 09-22-2006, 08:46 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Damn, i thought ya could do it using SSH but i dont think i will ever bother lol
I just leave mine to download for a day or so, then upload for 2 days or so lol

Using SSH could you transfer from server to server? is that what im seeing in your example?

I spose that would pretty darn quick?
Reply With Quote
  #5  
Old 09-22-2006, 09:24 PM
Chicago_VLNU_4s Chicago_VLNU_4s is offline
 
Join Date: Mar 2006
Location: Chicago
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well i came to figure, i could just save the public_html folder and upload the files that are in this one to the new host public_html folder and it will work, right?
Reply With Quote
  #6  
Old 09-22-2006, 10:16 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes you are 100% correct, although, there may need ot be a little configuring.
See how you get on 1st, if theres any errors when completed post here the errors and will take it from there!
Reply With Quote
  #7  
Old 09-22-2006, 10:18 PM
Chicago_VLNU_4s Chicago_VLNU_4s is offline
 
Join Date: Mar 2006
Location: Chicago
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok bashy thanks, ill let you know how it goes
Reply With Quote
  #8  
Old 09-23-2006, 05:10 AM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bashy
Damn, i thought ya could do it using SSH but i dont think i will ever bother lol
I just leave mine to download for a day or so, then upload for 2 days or so lol

Using SSH could you transfer from server to server? is that what im seeing in your example?

I spose that would pretty darn quick?

Yes, I transfered roughly 20+gb the other day from one server to the next in about 30 minutes or so i think it was.

That was on a 100mbps, sure beats waiting days for downloads, and more days to reupload
Reply With Quote
  #9  
Old 09-23-2006, 10:46 PM
Chicago_VLNU_4s Chicago_VLNU_4s is offline
 
Join Date: Mar 2006
Location: Chicago
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, i put all my files on the new host, and ran the install process of my new board. It's basically completley new. I looked in phpMyAdmin and there were no tables b4 i installed. So i made a backup of my board maybe 2 days ago (thank God). I'm attempting to restore my tables and everything else. So i goto:

phpMyAdmin > Import > Browse File

select my "vbulletin.sql" then character set of file "utf8" correct? This will complelety restore everything? If not, tell me what i do? I have my vbulletin.sql file updated, so what do i gotta do to restore everything


THANKS!

nevermind... i did just that and it worked! I'm back up baby!


*****************************

i looked at it when it was done, and here's what it says

Quote:
Error
There is a chance that you may have found a bug in the SQL parser. Please examine your query closely, and check that the quotes are correct and not mis-matched. Other possible failure causes may be that you are uploading a file with binary outside of a quoted text area. You can also try your query on the MySQL command line interface. The MySQL server error output below, if there is any, may also help you in diagnosing the problem. If you still have problems or if the parser fails where the command line interface succeeds, please reduce your SQL query input to the single query that causes problems, and submit a bug report with the data chunk in the CUT section below:
----BEGIN CUT----
eNodjsFOg0AARO/7FXNogiawXRYCZD0RsqkkFCpL8WioVCVBQKDa/hX/Q/wXwbnO5L2RaZqkAoGJ
gCOSsYDlwvJg20RlSzEREuRKYBOWAsNX3RX9cO5pXZ1o99Hp3+ DUdsEZc7bM3JouTFcwLiyG19up
HV/GT8hrhw3Z39RTJGBTk3LTGMaiKYu+NOr2nRxVikTp8HcyznTkc vE+Vw1CCYcyctj7YtF4lFFO
Do+HdaAnamXZdDldNZcrifx4J3BujMv4Znjk30XCWMk0QxhnCX 7avkTuR0ep7jTbcZimQ5vXTNM0
T/P8q90//AHNbE19
----END CUT----
----BEGIN RAW----

ERROR: C1 C2 LEN: 37 38 44
STR: ?

CVS: $Id: sqlparser.lib.php,v 2.47 2006/01/17 17:02:30 cybot_tm Exp $
MySQL: 4.1.21-standard-log
USR OS, AGENT, VER: Win IE 6.0
PMA: 2.8.0.2
PHP VER,OS: 4.4.2 Linux
LANG: en-utf-8
SQL:
INSERT INTO word VALUES('4660', 'ۛۛ۰??۰ۛݧ);
----END RAW----


SQL query:

INSERT INTO word VALUES('4660', 'ۛۛ۰??۰ۛݧ);

MySQL said:

#1062 - Duplicate entry '??????????' for key 2
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04659 seconds
  • Memory Usage 2,289KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete