Forums / General / image backup / which directories?

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

eZ debug

Timing: Jan 19 2025 06:16:05
Script start
Timing: Jan 19 2025 06:16:05
Module start 'content'
Timing: Jan 19 2025 06:16:05
Module end 'content'
Timing: Jan 19 2025 06:16:05
Script end

Main resources:

Total runtime0.8240 sec
Peak memory usage4,096.0000 KB
Database Queries191

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.9453180.8438
Module start 'content' 0.00670.6870 769.7891545.1328
Module end 'content' 0.69370.1303 1,314.9219332.7500
Script end 0.8239  1,647.6719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4622210.0002
Check MTime0.00140.1689210.0001
Mysql Total
Database connection0.00100.118810.0010
Mysqli_queries0.749590.95421910.0039
Looping result0.00190.23201890.0000
Template Total0.786495.420.3932
Template load0.00210.257320.0011
Template processing0.784395.176420.3921
Template load and register function0.00010.011910.0001
states
state_id_array0.00120.142510.0012
state_identifier_array0.00240.287720.0012
Override
Cache load0.00170.2121420.0000
Sytem overhead
Fetch class attribute can translate value0.00100.124230.0003
Fetch class attribute name0.00110.132940.0003
XML
Image XML parsing0.00100.118230.0003
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00520.6267330.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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