image backup / which directories?

Author Message

Georg Franz

Thursday 08 April 2004 2:55:49 am

Hi,

I've started with ez 3.1 and have upgraded from time to time, so I am using now the new image system of ez 3.4. (which is - of course - the same as in 3.3).

I've several directories under my var/storage:

var/images
var/images-versioned
var/original
var/reference
var/variations

I don't want to make a backup of all directories but only from the "original" images.

So - which (main) directory is needed and which is not?

e.g. in var/original/image are the "old" original images from ez 3.2. Can I remove them savely?

(Because I am having around 4000 "original" images, I don't want to use the "try and error" principle) ...

Additional question:
Why are empty directories with no images created?

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Marco Zinn

Thursday 15 April 2004 2:25:35 pm

Hi Emil,
i just posted a bug regarding the "images-version" directory, because i think, there is some problem with the cleanup code.
I think, the dirs
var/original
var/reference
var/variations
are just used by the old image system (until 3.2). The new images system fetches the original files from "var/original", when it needs them. But i don't know, how you can make sure, that all images are converted to the new system, so you can safely delete the old dirs.
If you can afford it: rename these three dirs and see, what happens with your site ;)
Or crawl the site, so you can make sure, that you access all images, which will copy all images to the new image system's dir, so you can remove the three "old" dirs.
I'm very sure, that you do not need to backup the reference and variations directory: They are only needed by the old image system. And even there, they are created from the "original" files.

So, my suggestion:
crawl the site (use httrack or some other website mirror tool), then
rename/move the three "old" dirs:
var/original
var/reference
var/variations
and mirror the site again, checking for errors (maybe a link-checker will do).

Additional anwer:
I think, the empty directories exist, because, there WAS a file in it, but the file was removed and the dir was not removed.
Should happen, when you upload an image and preview it (in the "draft" state) and the publish it somewhere (when it gets a node).

Marco
http://www.hyperroad-design.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 07:16:46
Script start
Timing: Jan 19 2025 07:16:46
Module start 'layout'
Timing: Jan 19 2025 07:16:46
Module start 'content'
Timing: Jan 19 2025 07:16:46
Module end 'content'
Timing: Jan 19 2025 07:16:46
Script end

Main resources:

Total runtime0.5726 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 589.1484152.6250
Module start 'layout' 0.00690.0038 741.773439.4453
Module start 'content' 0.01060.5607 781.2188540.0547
Module end 'content' 0.57130.0012 1,321.273412.1563
Script end 0.5725  1,333.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5544160.0002
Check MTime0.00120.2073160.0001
Mysql Total
Database connection0.00110.187210.0011
Mysqli_queries0.523291.3755540.0097
Looping result0.00050.0918520.0000
Template Total0.537293.820.2686
Template load0.00210.363820.0010
Template processing0.535193.457520.2675
Template load and register function0.00010.019210.0001
states
state_id_array0.00140.236910.0014
state_identifier_array0.00120.205720.0006
Override
Cache load0.00180.3110420.0000
Sytem overhead
Fetch class attribute can translate value0.00100.178020.0005
Fetch class attribute name0.00140.238940.0003
XML
Image XML parsing0.00100.176620.0005
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00100.1804220.0000
String conversion0.00000.002040.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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
6content/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