vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   General Hosting/Server Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=197)
-   -   Full Backup via SSH? (https://vborg.vbsupport.ru/showthread.php?t=121320)

Staxed 07-16-2006 07:25 AM

Full Backup via SSH?
 
I didn't know whether to put this in the coding forum or here, but since it involves the server...i figured this would be the correct spot.

I've been looking around on google for a while now and can't seem to find commands to perform a full backup (files, directories, databases, pop accounts, everything)

is it possible? and if so, how?

firstrebel 07-16-2006 07:40 PM

Are you talking about a full server backup?

Bob

Guest210212002 07-17-2006 02:19 AM

See the links in my sig for a pair of howtos. :) I use one script to backup my entire filesystem and database weekly, you can just merge the two.

Snake 07-17-2006 10:24 AM

Here this should come in handy... :)

https://vborg.vbsupport.ru/showthread.php?t=106935

Staxed 07-18-2006 06:59 AM

Quote:

Originally Posted by firstrebel
Are you talking about a full server backup?

Bob

yup, i am.

thanks guys...i'll look at those :)

Guest210212002 07-19-2006 12:21 PM

You're looking to backup system state as well?

Snake 07-19-2006 12:50 PM

Chris, I am looking to backup the whole site including a backup database of the forums.

Guest210212002 07-20-2006 04:47 PM

For your filesystem and database, this will work:

Code:

#! /bin/bash
# Database Backup
mysqldump --opt -Q -u dbusername -pPassword dbname > /path/to/backups/`date --iso-8601`.sql
sleep 5
# Filesystem Backup
tar -czvf /your/backup/folder/sitedata-`date --iso-8601`.tar.gz /path/to/your/siteroot/httpdocs/

As far as pop accounts, I'm not exactly sure on that one.


All times are GMT. The time now is 03:35 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.01043 seconds
  • Memory Usage 1,720KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete