Helpful Information
 
 
Category: General Hosting/Server Discussions
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?

Are you talking about a full server backup?

Bob

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.

Here this should come in handy... :)

http://www.vbulletin.org/forum/showthread.php?t=106935

Are you talking about a full server backup?

Bob

yup, i am.

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

You're looking to backup system state as well?

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

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.










privacy (GDPR)