Previous Thread
Next Thread
Print Thread
Hop To
How do I backup my forums? #191156 07/14/2007 7:43 PM
Joined: Jun 2006
Posts: 15,848
Gizmo Online Tapedshut OP
UBB.threads Developer
OP Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 15,848
The recommended method is listed below; this is not the only method but it's what tends to go the fastest (especially with larger forums). We only recommend using the built in "backup database" tool as a last resort as it'll take forever to run on even a moderately small forum.

Please Note: MySQL File Creation times, Compression Times, Extraction Times, and Download Times will vary based on Server Resources, Database and Archive size, and Internet Connection Speed.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Express Hosting
Re: How do I backup my forums? [Re: Gizmo] #191157 07/14/2007 7:44 PM
Joined: Jun 2006
Posts: 15,848
Gizmo Online Tapedshut OP
UBB.threads Developer
OP Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 15,848
MySQL Backup in Unix or Linux
If you're on a Linux/Unix machine, you can use the Command Line tools via SSH to create a database dump (backup of the mysql database) by inserting the command:
Quote:
mysqldump -uusername -ppassword databasename > databasename.sql


If you wish to compress the above output so that it's easier to transfer around, then you can do:
Quote:
tar -cvpzf databasename.tgz databasename.sql


If you've compressed the output and would like to decompress it, then you can run:
Quote:
tar -xzvf databasename.tgz

(the output will extract as databasename/databasename.sql)

And to restore said backup, after you purge data out of the MySQL database:
Quote:
mysql -h localhost -uusername -ppassword databasename < databasename.sql


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: How do I backup my forums? [Re: Gizmo] #191159 07/14/2007 7:54 PM
Joined: Jun 2006
Posts: 15,848
Gizmo Online Tapedshut OP
UBB.threads Developer
OP Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 15,848
File Backup in Linux or Unix
You can easily backup your entire UBB.Threads directory (with or without the cache) with a quick one liner:

Without the Cache:
Quote:
tar -cvpzf forum_backup.tgz /path/to/your/forum --exclude-from=/path/to/your/forum/cache


With the Cache:
Quote:
tar -cvpzf forum_backup.tgz /path/to/your/forum


Extracting the Backup:
Quote:
tar -xzvf forum_backup.tgz


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: How do I backup my forums? [Re: Gizmo] #191164 07/14/2007 8:14 PM
Joined: Jun 2006
Posts: 15,848
Gizmo Online Tapedshut OP
UBB.threads Developer
OP Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 15,848
PHPMyAdmin Notice
I myself don't recommend that you create your database backup from within PHPMyAdmin (or any other web script) as it can take much longer than the aforementioned methods as you're hopping through the webserver to do something that it doesn't really need to be doing.

Another issue with using PHP scripts to create a database dump is that you could end up hitting the "PHP Maximum Execution Time" limit which is usually about 60 seconds... If this is the case, the archive you're presented with will generally not be complete and you'll end up with missing records. This is generally not a problem with databases under 100mb or so; but is still something one would have to worry about.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Additional Resources
UBB Developers
UBB Wiki
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Strange Merge Issue
by Baldeagle - 08/16/2019 3:37 PM
Formatting Links
by Ty Griffin - 08/13/2019 4:39 PM
Changing from iso-8859-1 to UTF-8?
by Daryl Fawcett - 08/13/2019 9:58 AM
Threaded Mode
by ToddUGA - 08/10/2019 9:18 PM
Who's Online Now
3 registered members (SD, Gizmo, ECNet), 52 guests, and 229 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
d-talk
d-talk
Germany
Posts: 90
Joined: June 2006
Show All Member Profiles 
Forum Statistics
Forums34
Topics35,320
Posts192,716
Members11,865
Most Online2,569
Jul 27th, 2019
Random Gallery Image
Latest Photos
The Sky
Land Rocks
Cozy Places
Trees
Powered by UBB.threads™ PHP Forum Software 7.7.3