Go Back   vb.org Archive > Community Central > Community Lounge
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 03-12-2003, 09:29 PM
Stu's Avatar
Stu Stu is offline
 
Join Date: Aug 2002
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have CPanel?

if you do you may be able to use a cron Job. I have CPanel on one of my shared accounts but I dont have Shell access on it, by using a Cron command I can backup and restore with no problem.

create a gzip backup of your DB then upload the file using FTP to the new server. to your Home Root.

Assuming your Database backup file is called DILBERT.gz
Re-Name DILBERT and the following

USERNAME to your Database Username
PASSWORD to your Database Password
DATABASE NAME to your database name

then run the following Cron Job

gunzip DILBERT.gz ; mysql -u USERNAME -pPASSWORD DATABASE NAME < DILBERT ; rm -f DILBERT

The above command will unzip the .gz file, restore the sql database and delete the gz file [b] NOTE: the database must exist, if it doesn't create an empty one first.

I've assumed that you have shell on your present account, to make the backup. If you dont then use cron with the following command to create backup

mysqldump --opt --user=USERNAME --password=PASSWORD DATABASE_NAME | gzip > /home/YOUR_DOMAIN/DILBERT.gz
Reply With Quote
  #12  
Old 03-14-2003, 02:52 PM
Jucin Jucin is offline
 
Join Date: Oct 2002
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We have PHPadmin and this is what happens when we try uploading it

we run an sql file to transfer data and that the phpmyadmin keeps dying on it, and when you try to browse for the file, it gives you a page cannot be displayed error....
Reply With Quote
  #13  
Old 03-14-2003, 03:25 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would email them and ask for SSH acess, if they wont give it to you, demand a refund and find a better host.
Reply With Quote
  #14  
Old 03-14-2003, 05:19 PM
Haddy Haddy is offline
 
Join Date: Jul 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since they wont give you shell to your account *youll find many hosts that dont because of people who dont know how to use it screwing up their accounts* ask them to upload it for you...

Whats probably happening is its timing out when you try to upload it. Which isnt unusual for a large database....Simplist thing to do is to upload it to your webspace *the .sql file* and have them ssh it to the database...

The command is:
mysql -unewusername -pnewpassowrd newdbname < dumpeddb.sql
*Replace: "newusername, newpassword, newdbname, and dumpeddb.sql" with your info..
Reply With Quote
  #15  
Old 05-30-2003, 06:44 PM
iggy123's Avatar
iggy123 iggy123 is offline
 
Join Date: Jan 2003
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use an application called MySQL front -- you can get it from http://mysqlfront.sstienemann.de/
it is a cool application and as long as you know the ip address. username/password of a db it will connect to it.
It does take a while to do it --- 3hrs to enter 10million characters LOL -- But it wrks fine.
I used it to rebuild my site and it went a dream
Reply With Quote
  #16  
Old 05-31-2003, 12:04 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
03-13-03 at 03:30 AM andera said this in Post #8
i just d/l phpmyadmin and uploading it to our server....
Won't work if the db is too big. phpmyadmin would just timeout.

The best idea here if there is not telnet/ssh would be doing it via cron - a cron job is basically a timed telnet/ssh command anyway - so run the command to download it, use your ftp client to download then upload to the new server then the other command to upload it. Mind you, telnet/ssh is essential for a lot of server optimizations.
Reply With Quote
  #17  
Old 06-04-2003, 10:21 AM
Stryker Stryker is offline
 
Join Date: Nov 2001
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had the same problem recently. My host refused to give me SSH access and wouldn't dump the database for me through sheer laziness. In the end I dumped it using the built-in vB backup tool in the control panel. I cleared the search index first and this cut the size of the DB in half. I managed to download a 25 meg-ish DB in one continuous stream using a 56k modem, so it can be done! phpMyAdmin was absolutely useless - it would timeout without fail long before the dump was complete. The host I moved to supports SSH so that stage of the process was made much simpler. In any case, if they hadn't offered SSH to their clients I'm sure they would have helped me out if I'd asked. Customer service is everything when you're looking for a host.
Reply With Quote
  #18  
Old 06-04-2003, 04:28 PM
rake's Avatar
rake rake is offline
 
Join Date: Nov 2002
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems many people here consider not having shell access a tragedy as far as "i can't backup my database" goes. If i would do hosting, especially shared hosting, i would disable remote shell access or block access to vital files and remove some of the functionality. And then again - database backups can be done through a simple php script anyway.... passthru? exec? system? As a system admin, i would rather make a nice little script to do everything a shell dump does, rather than giving access to inexperienced users. But that's just me.
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 09:05 AM.


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.03907 seconds
  • Memory Usage 2,231KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete