Importing packages from the command line

Author Message

Felix Laate

Wednesday 30 August 2006 2:34:32 am

Hi all!

I need to import a package that is 191MB. Doing this via the admin interface appears the be very troublesome.

So I wonder if it is possible to do it via CLI?

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Kristof Coomans

Wednesday 30 August 2006 2:49:01 am

Hi Felix

It is possible with ezpm.php (in the root of your eZ installation), but there are some unresolved bugs related to ezpm:
- call to undefined function export: http://ez.no/bugs/view/8718
- Error: (eZFileHandler::copy) Unable to open source file in read mode: http://ez.no/bugs/view/8821

But I think importing will work fine.

For more info on how to use ezpm, read: http://ez.no/products/ez_publish/documentation/ez_publish_3_4/content_object_export_with_ezpm

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Felix Laate

Wednesday 30 August 2006 3:24:21 am

Hi Kristof!

Thanks! I'll give it a try!

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Felix Laate

Wednesday 30 August 2006 11:47:55 pm

Hi again!

I gave it a try, but it failed:

 Failed importing package /home/hero/hero_old.ezpkg

Could it be related to the fact that the package I created, was created on a 3.6.10 system, whereas the import was tried on a system running 3.8.3?

The package contains content, media, design and users.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.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 31 2025 07:30:11
Script start
Timing: Jan 31 2025 07:30:11
Module start 'layout'
Timing: Jan 31 2025 07:30:11
Module start 'content'
Timing: Jan 31 2025 07:30:11
Module end 'content'
Timing: Jan 31 2025 07:30:11
Script end

Main resources:

Total runtime0.0184 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.2578151.2266
Module start 'layout' 0.00600.0031 739.484436.6641
Module start 'content' 0.00910.0079 776.148494.2656
Module end 'content' 0.01700.0014 870.414133.9922
Script end 0.0184  904.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002412.9911140.0002
Check MTime0.00105.6343140.0001
Mysql Total
Database connection0.00073.542010.0007
Mysqli_queries0.003619.460830.0012
Looping result0.00000.135810.0000
Template Total0.00115.710.0011
Template load0.00084.486010.0008
Template processing0.00021.215610.0002
Override
Cache load0.00052.891510.0005
General
dbfile0.002915.675780.0004
String conversion0.00000.047840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs