Need to copy site from one server to another

Author Message

Andy Woods

Tuesday 21 June 2011 1:55:28 am

I've been developing an ez4.4 site on a development server.  It's now ready to be copied across to the production server.

Can you tell me what is the correct process to copy the site across to the new server please?

Is it simply a case of:

  1. install ezpublish on new server
  2. import database from dev server
  3. upload extension folders

Which folder contains the 'Media' files (images, Word docs etc) that I have uploaded to the dev server via the CMS?  Is it the '/var' folder?  Is this the only other folder I need to upload to the new server to ensure that all the content is transferred across?

Thanks,

Andy

Andy Caiger

Tuesday 21 June 2011 2:46:10 am

Yes, you need to copy /var. You also need to copy settings/siteaccess and settings/override.

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com

Donat Fritschy

Tuesday 21 June 2011 3:38:21 am

Actually, you need only to copy /var/storage from the /var directory. The other subdirectories in /var are recreated as needed.

You will also need to check the permissions on the file server. See bin/modfix.sh

Finally, clear all caches in the admin (setup/cache) and recreate the autoloads (setup/extensions).

>>> OOPS! See comment by Marko below. Thanks for the correction. -Donat

http://www.webmanufaktur.ch - Developers united in eZ Publish: http://www.cjw-network.com

Helge Silset

Tuesday 21 June 2011 7:45:23 am

Hi Andy,

ezcopy should be able to handle this. It will create an archive containing your installation and an sql dump on your development server and download it.

If you have permissions to create databases and assign rights on your destination server, use 'download-install'. If not, you can use 'download' and import the database manually.

http://projects.ez.no/ezcopy

The repository on projects.ez.no isn't quite up to date, but it should get the job done.

Hope this helps!

Marko Žmak

Tuesday 21 June 2011 11:38:20 am

"

Actually, you need only to copy /var/storage from the /var directory. The other subdirectories in /var are recreated as needed.

"

That's not really true. You also have to copy this folders:

  • var/<yoursiteaccess>/storage - it's most important, all binary content (images, pdfs, files...) are actualy here
  • var/log and var/<yousiteaccess>log - if you want to keep the logs

Also if you have several siteaccess that don't share the storage folder you will have to copy storage folders for all of them.

Also you should check if you have some extension that creates some permanent files in some other folders than this ones. (which should not happen if the extension is writtten correctly)

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Nicolas Pastorino

Wednesday 22 June 2011 6:14:41 am

Hi Andy, 

I hope these gentlemens' good insight helped you solve your problem. If so, feel free to mark the thread as solved (click the small ticker right on the left of this thread's title).

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Andy Woods

Friday 24 June 2011 2:26:49 am

Thanks guys - I'll let you know how I get on.

Much appreciated,

Andy

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 00:54:33
Script start
Timing: Jan 18 2025 00:54:33
Module start 'layout'
Timing: Jan 18 2025 00:54:33
Module start 'content'
Timing: Jan 18 2025 00:54:34
Module end 'content'
Timing: Jan 18 2025 00:54:34
Script end

Main resources:

Total runtime0.8001 sec
Peak memory usage4,096.0000 KB
Database Queries78

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.0469152.6406
Module start 'layout' 0.00560.0032 740.687539.4844
Module start 'content' 0.00890.7898 780.1719755.5000
Module end 'content' 0.79870.0014 1,535.671916.7500
Script end 0.8001  1,552.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4167160.0002
Check MTime0.00140.1717160.0001
Mysql Total
Database connection0.00080.102710.0008
Mysqli_queries0.722690.3111780.0093
Looping result0.00090.1185760.0000
Template Total0.770096.220.3850
Template load0.00200.251220.0010
Template processing0.768095.981720.3840
Template load and register function0.00020.025910.0002
states
state_id_array0.00100.122110.0010
state_identifier_array0.00140.171820.0007
Override
Cache load0.00180.2280520.0000
Sytem overhead
Fetch class attribute can translate value0.00110.131860.0002
Fetch class attribute name0.00170.2066110.0002
XML
Image XML parsing0.00380.478060.0006
class_abstraction
Instantiating content class attribute0.00000.0021110.0000
General
dbfile0.00380.4741360.0001
String conversion0.00000.001040.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ol.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ol.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
2content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 33
 Number of unique templates used: 11

Time used to render debug report: 0.0001 secs