How to do/trigger archiving

Author Message

Marco Zinn

Monday 18 October 2004 1:33:33 pm

Currently, ezPublish "drops" (deletes) data of object versions, that are older than 10 versions (for articles) than the published version. In other words, it keeps about 10 versions of an object in the DB, not more.
Sometimes, you may want to "archive" (do "record-copies"... i don't know the perfect word) of "archived versions", when you deleted them from the DB (or maybe as soon as you publish a new version).

I guess, this would need:
- a trigger (somewhere in the "publish" function)
- a smart way to serialize the object (XML, okay, but think of files and images)... maybe the package system would be good
- some "output destination" like a file (Text, binary, PDF, whatever)
- Some concept of how to "get rid of" these "record copies": Writing them to tapes, DVDs or the like

Did anyone do something like this?

Marco
http://www.hyperroad-design.com

Norman Leutner

Monday 18 October 2004 10:58:45 pm

I`m using sql-dumps to backup the database every night.
The storage directory is also copied and written on tapes every night.
The sql-dumps and files are archived with HP Omniback.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Björn Dieding@xrow.de

Tuesday 19 October 2004 4:52:41 pm

I think you are on the right track...

My idea
- Do a before publish workflow.
- that workflow should take care that the ezcontentobject package gets created without class information and just one version.
- Store this package somewhere on the disk.

I have already done similar things. It is not that hard. Though not all Datatypes support serializing :-(

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/

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 20:10:44
Script start
Timing: Jan 19 2025 20:10:44
Module start 'layout'
Timing: Jan 19 2025 20:10:44
Module start 'content'
Timing: Jan 19 2025 20:10:44
Module end 'content'
Timing: Jan 19 2025 20:10:44
Script end

Main resources:

Total runtime0.6987 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.1563152.6250
Module start 'layout' 0.00480.0021 741.781339.4453
Module start 'content' 0.00700.6907 781.2266590.0781
Module end 'content' 0.69760.0011 1,371.304712.4766
Script end 0.6987  1,383.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4346160.0002
Check MTime0.00120.1689160.0001
Mysql Total
Database connection0.00080.115510.0008
Mysqli_queries0.653593.5304590.0111
Looping result0.00050.0677570.0000
Template Total0.674596.520.3372
Template load0.00200.287320.0010
Template processing0.672496.236820.3362
Template load and register function0.00010.011010.0001
states
state_id_array0.00070.099610.0007
state_identifier_array0.00070.104520.0004
Override
Cache load0.00170.2464250.0001
Sytem overhead
Fetch class attribute can translate value0.00050.077530.0002
Fetch class attribute name0.00090.124560.0001
XML
Image XML parsing0.00130.192130.0004
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00110.1588290.0000
String conversion0.00000.000840.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs