RE: fastest way to duplicate production server?

From: Darren Pilgrim (dmp_at_bitfreak.org)
Date: 07/13/05

  • Next message: Gustavo A. Baratto: "Re: fastest way to duplicate production server?"
    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"


  • Next message: Gustavo A. Baratto: "Re: fastest way to duplicate production server?"

    Relevant Pages

    • Re: Another backup question
      ... freezing on me. ... excluding specific files in any of the above backup programs. ... I use Retrospect. ...
      (comp.sys.mac.apps)
    • Re: Preferred Backup Method?
      ... mandatory to backup? ... But on a system where I've built lots of local software or done lots of custom scripting, backing up the binaries makes more sense. ... So does excluding data caches -- /var/cache/apt, your squid cache directory if you're running squid, maybe even web browser caches if you're pinched for space. ...
      (Debian-User)
    • Re: I want all those MP3 files out of my file server
      ... it slows the backup down. ... that backing up after deleting files is much faster than backing up ... the same data by excluding files. ...
      (microsoft.public.win2000.general)
    • Re: NTBackup Failing every 2nd night of backups
      ... excluding the external drive from the backup routine after a failed backup ... and the SBS backup routine has run perfectly for some time). ... It doesn't happen after every failed backup, ...
      (microsoft.public.windows.server.sbs)
    • MSCS DC Members and DNS
      ... I would like to setup an MSCS cluster and have 2 nodes run as DCs (one as ... primary the other as backup). ... Is it required that I have Microsoft DNS ... Server running on these nodes as well? ...
      (microsoft.public.windows.server.clustering)