[Box Backup] Backup File Order

Chris Wilson boxbackup@fluffy.co.uk
Mon, 3 Dec 2007 21:50:26 +0000 (GMT)


Hi Johann,

On Fri, 14 Sep 2007, Johann Glaser wrote:

> > For example, I think you said that provided we back up the files in 
> > the correct order, we can back up a live SVN filesystem and we don't 
> > need to make a hot copy? If so, then why the need for the pre and post 
> > scripts? What would they do?
> 
> As already said, for SVN FSFS repositories no pre and post scripts are 
> needed. But e.g. for MySQL they are. The database directory (e.g. 
> /var/lib/mysql/) must be excluded and another directory which holds the 
> database dump must be included. Before the backup of the dump-directory 
> the pre-script must run.
> 
> Alternatively (for low-traffic sites) a pre-script could stop mysqld and 
> a post-script could start it. Therefore no dump is necessary.

You can now do this with trunk, by modifying the NotifyScript to handle 
the backup-start and backup-finish events and doing whatever you want with 
them.

Cheers, Chris.
-- 
_____ __     _
\  __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |