RE: fastest way to duplicate production server?
From: Darren Pilgrim (dmp_at_bitfreak.org)
Date: 07/13/05
- Previous message: Freddie Cash: "Re: fastest way to duplicate production server?"
- In reply to: RC: "fastest way to duplicate production server?"
- Next in thread: Gustavo A. Baratto: "Re: fastest way to duplicate production server?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "'RC'" <rubbishcollector@yahoo.com>, <freebsd-isp@freebsd.org> Date: Tue, 12 Jul 2005 15:06:37 -0700
From: RC <rubbishcollector@yahoo.com>
>
> We have a production FreeBSD 4.10 server running old versions
> of Apache/MySQL/PHP from ports. We'd like to upgrade
> Apache/MySQL/PHP to the latest versions. Before upgrading
> we'd like to test on a test box.
>
> What's the fastest way of duplicating the existing
> Apache/MySQL/PHP (including user databases)? (The production
> server cannot go down for more than a few seconds.)
Make per-filesystem back-ups of everything excluding those files opened
read-write by whatever services you're running (ignore log files). Use
nice to run the backup at a priority low enough to not usurp resources
from the production services. Stop whatever services are running. Use
fstat to make sure the excluded files are closed. Make a backup of the
files excluded from the first backup run (again, ignore logs). Restart
whatever services you stopped.
If you can get away with it, flip the volumes read-only before doing the
backup, it can make things just a little bit faster.
_______________________________________________
freebsd-isp@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-isp
To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
- Previous message: Freddie Cash: "Re: fastest way to duplicate production server?"
- In reply to: RC: "fastest way to duplicate production server?"
- Next in thread: Gustavo A. Baratto: "Re: fastest way to duplicate production server?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|