Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
4 Registered (auduntvedt, blaaskaak, mcasado, 1 invisible), 20 Guests and 21 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
Gizmo 11702
Rick 7567
Ian 4107
Mark S 3983
ntdoc 3110
Sirdude 2041
jgeoff 1882
David Dreezer 1759
driv 1568
AllenAyres 1529
Latest Photos
Carrie - So Very
Testing
Test Photo
4TH of July at the river!
Test shots from D300 part 3
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#212877 - 05/19/08 10:09 AM database backup - automation?
Island Piper Offline
member

Registered: 04/04/07
Posts: 141
Loc: Friday Harbor, WA
Utilizing Gizmo's Backup Process is there a way to script the closing of the forums while this backup is taking place?

Is it necessary to close the board or does the mysqldump process close the tables being backed up automatically?

How do others perform this task? Our board is active 24x7 since we have a worldwide membership, though it is a tad light at the wee hours of the morning USA time.
_________________________
Dunsire Bagpipe Forums

Top
#212885 - 05/19/08 11:32 AM Re: database backup - automation? [Re: Island Piper]
jgeoff Offline
Pooh-Bah

Registered: 08/08/06
Posts: 1882
Loc: NJ

My host makes daily backups automatically, but I don't think (know if) they lock the tables as I've never noticed it...
_________________________
GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Firefox 3.0, Google Chrome, & Safari 3.1 (XP and iPhone)

Top
#212889 - 05/19/08 12:38 PM Re: database backup - automation? [Re: jgeoff]
Island Piper Offline
member

Registered: 04/04/07
Posts: 141
Loc: Friday Harbor, WA
I looked at the dotoggleopen.php file and decided that if I were to close the board during the backup I will just swap in a config.inc.php file that has the BOARD_IS_CLOSED => '1' setting, run my sql dump and then swap back a config.inc.php file that has that set to '0'
_________________________
Dunsire Bagpipe Forums

Top
#212895 - 05/19/08 01:41 PM Re: database backup - automation? [Re: Island Piper]
blaaskaak Online   content


Registered: 08/30/06
Posts: 1214
Loc: Breda, NL
I don't bother with the board close. The backup is done so quick, in the middle of the night, that anything lost would be close to nothing.
_________________________

Top
#212908 - 05/19/08 02:49 PM Re: database backup - automation? [Re: blaaskaak]
Island Piper Offline
member

Registered: 04/04/07
Posts: 141
Loc: Friday Harbor, WA
Good to know that, I'll just cron the backup job and see how it goes tonight.
_________________________
Dunsire Bagpipe Forums

Top
#212990 - 05/20/08 08:23 AM Re: database backup - automation? [Re: Island Piper]
Gizmo Moderator Offline


Registered: 06/04/06
Posts: 11702
Loc: Portland, OR; USA
You should close your board before backing up.
The mysqldump will create the file as you select it; it will do it immediately.
Automating the process would be possible, but I'd recommend doing it manually, then you know when to re open when the backup is done.

the backup should just take a couple of seconds/minutes.
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#213012 - 05/20/08 11:22 AM Re: database backup - automation? [Re: Gizmo]
Island Piper Offline
member

Registered: 04/04/07
Posts: 141
Loc: Friday Harbor, WA
Actually I just stumbled across a nice little utility script for monitoring mysqldump. Well actually it does a lot more than that, it will:

- set daily, weekly monthly backups
- rotate backups
- backup single, multiple, all or exclude databases
- compress backups in addition to compressing the backup stream
- email the results, backup file, both, or only on error
- create time/date stamped backups, and separate directories
- run pre and post backup commands

It is all in a shell script so it's easy to adjust to your needs.

I generally will run backups a few times manually to be sure nothing blows up, but once I know all is well things become automated from there on out.
_________________________
Dunsire Bagpipe Forums

Top
#213024 - 05/20/08 12:08 PM Re: database backup - automation? [Re: Island Piper]
Sirdude Offline


Registered: 04/19/07
Posts: 2041
Loc: SoCal, USA
how bout a Linky Poo™ to it .. i'd like to tinker with it too smile

tia
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top
#213039 - 05/20/08 01:07 PM Re: database backup - automation? [Re: Sirdude]
Island Piper Offline
member

Registered: 04/04/07
Posts: 141
Loc: Friday Harbor, WA
Ah yes of course, linky poo...
_________________________
Dunsire Bagpipe Forums

Top
#213048 - 05/20/08 02:44 PM Re: database backup - automation? [Re: Island Piper]
Mark S Offline
Carpal Tunnel

Registered: 07/04/06
Posts: 3983
Loc: Liverpool : England : UK
Thats been around for a while and well used,
probably because it does everything on the tin wink
_________________________
Version v7.2.2 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
To answer the question you must first give a question.

Top
Page 1 of 2 1 2 >


Moderator:  Gizmo 
Shout Box

Recent Topics
Changing title of forum
by Baby Boomer
Today at 07:38 AM
Disable PM's for one group
by Musky
Today at 07:10 AM
SQL Error: Got error 28 from storage engine ?
by jgeoff
Yesterday at 05:03 PM
Stop All E-mail
by Mark S
Yesterday at 11:16 AM
Ability to Truncate a thread from any point at any time.
by Naz
Yesterday at 07:37 AM
Forum Stats
4025 Members
33 Forums
30880 Topics
156803 Posts

Max Online: 978 @ 06/24/07 08:19 PM