Disk cleanup - HOWTO?

Author Message

Atle Enersen

Thursday 06 May 2004 12:56:23 am

Due to huge amount of data (videos) I had to split out one site from the rest that shared the same instance og eZ into it's own instance. Actually I just copied the entire instance, re-configured it and deleted via the admin-interface on both instances what should not be there any more.

That worked fine, except for one thing. The files in the storage area still remains. Yes, all instances shared the same storage-area due to transparency of content.

Question is, how do I get rid of the files in the two instances that no longer are active in the database?

Rgds,
/atle/
--

Willie Seabrook

Friday 07 May 2004 9:31:13 pm

Could you elaborate a little?

As I understand it: You have deleted a whole lot of content objects, but the binary files (in this case videos) havn't been deleted from the storage directory?

If this is the case:

1. Have you 'Cleared the Trash' in the admin interface? Objects are held there after they are deleted.
2. Have you checked the permissions on the storage directory? Apache must be able to write - perhaps the perms got mucked up in the transfer and it can't delete those files.

Let me know.

Regards,
Willie

Atle Enersen

Saturday 08 May 2004 1:11:30 am

Yes, the cache has been cleared. The videofiles (deleted) resides in var/storage/video - yes, as I mentioned vi use the same cache/storage-dirs for all sites due to transparancy of content between the sites.

And yes, Mr. www has full control over the whole WEB-tree :-)

I could delete the videos manually. Luckily the site splitted out is the only one that has videos, but this is a general problem I think. Ex images or audiofiles (which all my sites has).

Therefore: The one that comes up with a solution that compares the database against the storage on disk and in some form either removes or makes a list or something, he/her will be made king/queen the next time the opportuinty comes along :-)

Rgds,
/atle/
--

Atle Enersen

Tuesday 11 May 2004 6:09:14 am

Should I be chocked that any1 from eZ has not replied yet?

Rgds,
/atle/
--

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

Main resources:

Total runtime0.0220 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.0078151.1953
Module start 'layout' 0.00510.0036 739.2031220.6563
Module start 'content' 0.00870.0118 959.8594997.6328
Module end 'content' 0.02050.0014 1,957.492233.9922
Script end 0.0219  1,991.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.8450140.0002
Check MTime0.00104.6857140.0001
Mysql Total
Database connection0.00083.632810.0008
Mysqli_queries0.002210.160430.0007
Looping result0.00000.049910.0000
Template Total0.00104.510.0010
Template load0.00083.510210.0008
Template processing0.00020.942110.0002
Override
Cache load0.00052.385710.0005
General
dbfile0.00031.350280.0000
String conversion0.00000.036940.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