The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
You know you're out there, Mr. I-Just-Install-Plugins-At-Will guy.
![]() Fortunately, an hour later and a couple of cups of coffee and my site's good to go because I am a total fanatic for backing up. If you have SSH access, it's one command. Make a shell script. Stick this in it: Code:
# Site Backup mysqldump --opt -Q -u username -ppassword dbname > /path/to/your/backups/db-`date --iso-8601`.sql So before you click that Import Product link, do yourself a favor and back your stuff up!. ![]() *that's what I do, anyway --------------- Added [DATE]1203860745[/DATE] at [TIME]1203860745[/TIME] --------------- Also, don't post things in the wrong forum like I just did. You'll feel silly. ![]() (Moved now ![]() |
#2
|
||||
|
||||
![]()
Very good advice! I must admit that I often forget to backup prior to adding a Mod. I always add the mod to my test site first, and if there are no problems, then I add it to my real site. (Which reminds me that I need to backup my test site!).
Also, another good thing is to remember to backup your files also. If you don't store attachments/avatars/etc in the database, then they are in the filesystem and won't get backed up when you backup your database! |
#3
|
|||
|
|||
![]()
This have to be the Tip of the Month...
![]() (and we can repeat it monthly!) |
#4
|
||||
|
||||
![]()
It might even rate a weekly shout around here.
![]() |
#5
|
|||
|
|||
![]() Quote:
Code:
# Filesystem backup tar -czf /path/to/backups/sitename-`date --iso-8601`.tar.gz /path/to/httpdocs/ |
#6
|
||||
|
||||
![]()
Chris, can you PM exactly what you use for the file backups? I'm not sure I understand it fully.
@ Lynne - Thanks for the reminder on the file backups. Great idea! ![]() |
#7
|
||||
|
||||
![]()
I wrote a script which I use to backup all my files. I run the attachment one once a week (7 GB of attachments) and the one for avatars, torrents, profile pics everynight. But, I also have all my files rsynced to an offsite server every night.
|
#8
|
|||
|
|||
![]() Quote:
https://vborg.vbsupport.ru/showthread.php?t=105728 It's the same thing for the DB. In /etc/cron.daily I have a script called backup.sh, that contains this: Code:
# Sevenstring.org Backup mysqldump --opt -Q -u username -ppassword dbname > /path/to/your/backups/sevenstring-`date --iso-8601`.sql Sleep 5 # Client 1 Backup mysqldump --opt -Q -u username -ppassword dbname > /path/to/your/backups/client1-`date --iso-8601`.sql sleep 5 # Client 2 Backup mysqldump --opt -Q -u username -ppassword dbname > /path/to/your/backups/ Code:
#! /bin/bash # Compressed Directory Tree Backup tar -czvf /your/backup/folder/sitedata-`date --iso-8601`.tar.gz /path/to/your/siteroot/httpdocs/ # Sevenstring.org Backup mysqldump --opt -Q -u username -ppassword dbname > /path/to/your/backups/sevenstring-`date --iso-8601`.sql Sleep 5 # Client 1 Backup mysqldump --opt -Q -u username -ppassword dbname > /path/to/your/backups/client1-`date --iso-8601`.sql sleep 5 # Client 2 Backup mysqldump --opt -Q -u username -ppassword dbname > /path/to/your/backups/ sitedata-`date --iso-8601`.tar.gz Makes a file called sitedata-2008-02-24.tar.gz. In the same vein, the dtabase backups are named things like sevenstring-2008-02-24.sql, etc, etc, so that the filenames ARE the dates they are created. ![]() Short version: Make textfile. Stick commands in, copy it to /etc/cron.daily (or weekly/monthly). So when I am about to install a plugin, I just run the script manually: sh /etc/cron.weekly/backup.sh And it does a backup stamped with today's date that I can restore from if and when I screw something up. ![]() |
#9
|
||||
|
||||
![]()
Ok, now I'm more confused than I was before. LOL
|
#10
|
||||
|
||||
![]()
They are bash commands you do from the command line.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|