URGENT !!!! removed root folder, how to fix?

Author Message

Baur Aibek

Monday 21 June 2004 2:48:46 am

user deleted root folder of a huge site :( the whole site gone to trash.

tried to restore root from trash - no result.

PLEASE help how to repair.

Bård Farstad

Monday 21 June 2004 2:53:52 am

The quickest would be to restore the site from backup.

eZ publish does not support restoring the site structure, only the content. So it will take some time to re-build this manually.

--bård

Documentation: http://ez.no/doc

Baur Aibek

Monday 21 June 2004 2:57:57 am

how to do it?
what is backup? ( we had done only database backup a month ago :(

Baur Aibek

Monday 21 June 2004 3:06:43 am

say at least how to create empty root folder again. we r ready to make structure manually

your advice lookes like a joke (did u really wanted to help?)

Björn Dieding@xrow.de

Monday 21 June 2004 7:03:06 am

To create a new root folder you will have to insert data in the following tables

-ezcontentobject
-ezcontentobject_attribute
-eznode_assignment
-ezcontentobject_tree

make sure it si using the node id 2

you can read the past settings from the the

kernel/sql/mysql/kernel_schema.sql

Doing no daily backups isn't funny either.

-
http://www.xrow.de

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Björn Dieding@xrow.de

Monday 21 June 2004 7:05:35 am

just an additional note

if your data is still in the db (trash)

try to set all co to published objects (manually)

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Baur Aibek

Monday 21 June 2004 7:57:28 pm

thank people

pls explain "try to set all co to published objects (manually) "

whats "co"m where to set? which table?

please explain

Balazs Halasy

Tuesday 22 June 2004 1:15:05 am

I would suggest that you back up your database (even if it is corrupt) before you do anything else:

mysqldump -u <user> -p <pass> <db_name> > backupfile.sql

When you've backed it up: try to create a new root node by doing as Bjørn says. Finally: you can try to do manual restore from trash, node-by-node. Good luck!

Balazs

Baur Aibek

Tuesday 22 June 2004 2:02:40 am

all is ok
root repaired
we have restored site manually

thanks to all

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 19 2025 01:00:41
Script start
Timing: Jan 19 2025 01:00:41
Module start 'layout'
Timing: Jan 19 2025 01:00:41
Module start 'content'
Timing: Jan 19 2025 01:00:42
Module end 'content'
Timing: Jan 19 2025 01:00:42
Script end

Main resources:

Total runtime0.7252 sec
Peak memory usage4,096.0000 KB
Database Queries79

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.2813152.6406
Module start 'layout' 0.00710.0032 741.921939.4766
Module start 'content' 0.01030.7137 781.3984683.0859
Module end 'content' 0.72400.0012 1,464.484420.1406
Script end 0.7252  1,484.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4688160.0002
Check MTime0.00150.2049160.0001
Mysql Total
Database connection0.00180.243510.0018
Mysqli_queries0.640488.3063790.0081
Looping result0.00080.1094770.0000
Template Total0.687094.720.3435
Template load0.00220.297620.0011
Template processing0.684894.428320.3424
Template load and register function0.00020.021210.0002
states
state_id_array0.00140.187310.0014
state_identifier_array0.00210.284520.0010
Override
Cache load0.00210.2838510.0000
Sytem overhead
Fetch class attribute can translate value0.00070.096940.0002
Fetch class attribute name0.00170.2386120.0001
XML
Image XML parsing0.00170.235340.0004
class_abstraction
Instantiating content class attribute0.00010.0139130.0000
General
dbfile0.00110.1514290.0000
String conversion0.00000.002940.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
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs