Mirroring local and remote installation

Author Message

Karsten Jennissen

Monday 20 November 2006 12:44:53 pm

I bet this has been asked before.

How can i mirror a local development installation (WAMP) and a remote server (LAMP) that will eventually be the live site?

Thanks for your help!

Karsten

kracker (the)

Monday 20 November 2006 8:19:30 pm

Hey Karsten!

I would use rsync (for the files) which is supported on just about every platform on the planet.
I would use a script to drop the db and load it from a sql dump rsync'd with the files.

I this way your mirror can be cron'd to update say every 4 hours.

Cheers,
//kracker

<i>beastie boys - skills to pay the bills (super mario mix)</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Michael Maclean

Tuesday 21 November 2006 1:23:48 am

I use a thing called rsnapshot (http://www.rsnapshot.org/) to do almost exactly that.

eZpedia community documentation project | http://ezpedia.org

kracker (the)

Sunday 10 December 2006 9:08:14 am

I created a documentation entry on eZpedia on this subject.
Please feel free to add your ideas on the subject!
<i>http://ezpedia.org/wiki/en/ez/rsync</i>

Cheers,
//kracker

<i>TV - Scrubs - Theme</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:59:53
Script start
Timing: Jan 18 2025 10:59:53
Module start 'layout'
Timing: Jan 18 2025 10:59:53
Module start 'content'
Timing: Jan 18 2025 10:59:54
Module end 'content'
Timing: Jan 18 2025 10:59:54
Script end

Main resources:

Total runtime0.7420 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0547152.6406
Module start 'layout' 0.00540.0040 740.695339.4766
Module start 'content' 0.00940.7311 780.1719579.7813
Module end 'content' 0.74050.0014 1,359.953112.1406
Script end 0.7419  1,372.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4256160.0002
Check MTime0.00130.1771160.0001
Mysql Total
Database connection0.00060.078910.0006
Mysqli_queries0.685292.3529620.0111
Looping result0.00100.1322600.0000
Template Total0.710695.820.3553
Template load0.00210.288320.0011
Template processing0.708495.475820.3542
Template load and register function0.00020.029810.0002
states
state_id_array0.00130.180910.0013
state_identifier_array0.00100.135220.0005
Override
Cache load0.00180.2396260.0001
Sytem overhead
Fetch class attribute can translate value0.00070.088330.0002
Fetch class attribute name0.00120.157050.0002
XML
Image XML parsing0.00090.123730.0003
class_abstraction
Instantiating content class attribute0.00000.001960.0000
General
dbfile0.00160.2177180.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs