Remove added files since last snapshot

sun - March 29, 2007 - 18:49
Project:Demonstration site (Sandbox / Snapshot)
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:evoltech
Status:active
Description

Demo should be capable to remove any new files since the last snapshot. It should only deal with files in the configured upload path of the site, so an admin can add other files (f.e. modules or themes) in other paths.

This could be done in two ways:

  1. Just use the date of the last reset to find all files newer than that date.
  2. Create a separate file storage where all files are copied during a snapshot. This would take into account that a file could be edited (not added) since the last snapshot. On reset, all files that are not in the snapshot are deleted and all altered files would be overwritten with the version in the snapshot file storage.

#1

sun - March 30, 2007 - 14:07
Version:5.x-1.0» 5.x-1.x-dev

#2

neofpo - February 12, 2008 - 23:32

This would be really handy!

#3

Rob Loach - November 27, 2008 - 05:53
Version:5.x-1.x-dev» 6.x-1.x-dev

Definitely would be pretty awesome to restore all tables but the contents of the node, user, taxonomy, etc tables. Really tricky though.

#4

evoltech - June 19, 2009 - 17:13
Assigned to:Anonymous» evoltech

I will be submitting a patch for this within the next week.

 
 

Drupal is a registered trademark of Dries Buytaert.