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.

Comments

sun’s picture

Version: 5.x-1.0 » 5.x-1.x-dev
neofpo’s picture

This would be really handy!

robloach’s picture

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.

evoltech’s picture

Assigned: Unassigned » evoltech

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

gaurav.kapoor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)