PDA

View Full Version : Full Backup via SSH?


Staxed
07-16-2006, 07:25 AM
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
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:


#! /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.