Trash - Whole Folder Restore

Author Message

John Smith

Wednesday 07 November 2007 2:55:39 am

Hi there,

I hope someone can help me if possible.

One of our clients accidently deleted whole "Files" folder from the Media Library which contain about 1500 files(PDF's, Doc files) . All the files were being used by some articles and folders. Is there any easy way to restore all the files in one go.

Please help.

Thanks

Smith

André R.

Wednesday 07 November 2007 3:20:11 am

No easy way I'm afraid, so the normal way to do it is to restore one and one node at a time from the root and deeper in the thrashed tree.
But some information on the original placement is preserved at least in 3.9 and higher. So it might be possible to write a script that restores the content recursively (from root to leaf).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

John Smith

Wednesday 07 November 2007 5:13:26 am

Hi Andre,

Thanks for your swift reply. Would it be possible to know when the client has deleted that folder and files inside in it, any sort of logs.

I have seen all the files a week ago.

It will be quite useful.

cheers

André R.

Wednesday 07 November 2007 1:32:30 pm

3.9 introduces Audit trailing, you can read more about it here:
http://pubsvn.ez.no/nextgen/stable/3.9/doc/features/3.9/audit_trailing.txt

But I would anyway recommend that you restrict access to delete folders (or what other class you use to define the structure of your site)..

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 18 2025 19:13:49
Script start
Timing: Jan 18 2025 19:13:49
Module start 'layout'
Timing: Jan 18 2025 19:13:49
Module start 'content'
Timing: Jan 18 2025 19:13:49
Module end 'content'
Timing: Jan 18 2025 19:13:49
Script end

Main resources:

Total runtime0.0149 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.3359152.6250
Module start 'layout' 0.00610.0026 741.960939.4453
Module start 'content' 0.00860.0044 781.406393.2891
Module end 'content' 0.01300.0018 874.695334.3047
Script end 0.0149  909.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002516.7733140.0002
Check MTime0.00127.8924140.0001
Mysql Total
Database connection0.00085.353810.0008
Mysqli_queries0.002718.157030.0009
Looping result0.00000.080010.0000
Template Total0.00159.910.0015
Template load0.00085.045110.0008
Template processing0.00074.877210.0007
Override
Cache load0.00053.543110.0005
General
dbfile0.00031.722880.0000
String conversion0.00000.059240.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