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 |
Jump to:
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:
- Just use the date of the last reset to find all files newer than that date.
- 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
#2
This would be really handy!
#3
Definitely would be pretty awesome to restore all tables but the contents of the node, user, taxonomy, etc tables. Really tricky though.
#4
I will be submitting a patch for this within the next week.