Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-12-2007, 05:11 PM
PhilipAlv PhilipAlv is offline
 
Join Date: Nov 2007
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Forum Backups Through SSH

Hi,i was going through this thread

I have a few doubts


When i login as root through PuTTy.this is the prompt i get "[root@secure ~]#"

So if i type in
"mysqldump --opt -Q -u dbusername -p databasename > backupname.sql" at the above prompt will it work ?..or should i get into another directory and run the command.

How do i change the prompt to another directory ?

Once i make the backup,how do i view the file ( how do i get to the location ) and how do i download it to my computer ?

Also,phpmyadmin says a particular database is 160 MB in size...but when i used the export option and save the very same database into my computer,the file size increased to 178 MB.Where did this extra 20 MB come from ?


Also,I have a 10 GB network backup space along with my hosting package.It can be accessed only via ftp once i log in as root through PuTTy.

How do i send the backups i take into that location ?



thanks
Reply With Quote
  #2  
Old 11-12-2007, 05:40 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When logged in type "man chdir" without the quotes and hit enter. That's how you navigate.

I'm assuming linux. Windows is similar, but the paths for navigation use backslashes instead of forward slashes.

If you do it as is, the back up file should appear right where you are if you do an "ls". LS is the same as "dir" in dos.

To see more info, try "ls -al". To see how it works completely, "man ls".

Hope that helps. If you are starting from scratch, check out a simple linux how to.
Reply With Quote
  #3  
Old 11-12-2007, 06:01 PM
PhilipAlv PhilipAlv is offline
 
Join Date: Nov 2007
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,thanks for the reply...yes...i use linux.....

i type in ls and find the backup.How do i save the file to my computer......by the way..is it possible to save it from my PuTTy client to my pc ?

I m new to all this stuff.My old admin left us without any notice and i m in the process of learning the stuff
Reply With Quote
  #4  
Old 11-12-2007, 06:25 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can push it via a CLI ftp command to another ftp server from ssh.

What ya need to do is backup to a folder you can access with ftp and grab it that way to download.

Say you have cpanel with a user named joeblow.

mysqldump --opt -Q -u dbusername -p databasename > /home/joeblow/backupname.sql

when done, joeblow hits ftp and the file is right there safe above public_html.
Reply With Quote
  #5  
Old 11-12-2007, 07:00 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have a dedicated ftp backup with your host, you will need to setup a cron'd script and put it in the correct cron directory for nightly backup.

You will need ncftp or another like program to ftp the file to your backup as well.

If you have a ftp server running on your home server, you can also have the script ftp it over there as well.

Everything you want to do in your original post can be done with a script on a nightly basis.
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 01:20 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.05664 seconds
  • Memory Usage 2,199KB
  • 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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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