The Arcive of vBulletin Modifications Site. |
|
Full Backup via SSH? Details »»
|
|||||||||||||||||||||||||
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? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Are you talking about a full server backup?
Bob |
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
||||
|
||||
|
|
|
#5
|
||||
|
||||
|
Quote:
thanks guys...i'll look at those
|
|
#6
|
|||
|
|||
|
You're looking to backup system state as well?
|
|
#7
|
||||
|
||||
|
Chris, I am looking to backup the whole site including a backup database of the forums.
|
|
#8
|
|||
|
|||
|
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/ |
![]() |
|
|