Re: [Lurker-users] Back up of the Lurker system
Brought to you by:
terpstra
From: Robert W. <ro...@a1...> - 2011-03-11 21:30:52
|
This is embarrassing, I really SHOULD know how to do this, but I don't. How do I lock this file ? When you say block level, you mean something like "dump" or "tar" ? From: Wesley W. Terpstra [mailto:we...@te...] Sent: Friday, March 11, 2011 1:25 PM To: Robert Woodworth Cc: lurker-users Subject: Re: [Lurker-users] Back up of the Lurker system On Fri, Mar 11, 2011 at 9:53 PM, Robert Woodworth <ro...@a1...> wrote: Whats the best way to do backups of the Lurker system? If I run a cron job to copy the database over to another location, how do I ensure that my backup and an indexing process do not collide ? If you lock the file /var/lib/lurker/db.writer during your backup of the lurker database, this will stop any new messages from being indexed. Another option is a filesystem or block-level snapshot. At any given instant the lurker database is consistent, so any sort of snapshotting technology will work. |