Backup and restore

Undelete or recycler for all deleted items?

 
 
Picture of Matt Jenner
Undelete or recycler for all deleted items?
 

The Moodle User Group Greater London (MUGGL) met today and discussed institutional backup policies. It would seem most of us either turn off regular backups or have only disaster recovery in place. Ultimately the majority of people who need to restore content need to restore things from 'a moment ago' or 'not sure, I dont know who deleted it'. Therefore, I wanted to ask the wider Moodle community - why does Moodle delete anything anyway? 

  • Delete a user - it says and is flagged as deleted. 
  • Delete a role assignment (yes, unassign) - student data remains but is 'invisible' 
  • Delete a resource - it's gone!
  • Delete user data (say from the Quiz Results table) - it's gone!

I wanted to ask, would Moodle benefit from having a 'recycle bin' - i.e. once something (anything) is deleted it's only flagged as deleted. Then when cron jobs run they check for 'deleted data' which is set to a period of time (day, week, month, year, forever) and only then is it properly and fully deleted. 

Does that make sense? I think it could save some huge problems for Moodle users, and support staff. It may be hard to implement but it could be very useful. 

 
Average of ratings:Useful (4)
Picture of Jason Robinson
Re: Undelete or recycler for all deleted items?
 

<p><p>Would make absolute sense. Having no undelete for stuff is one of the biggest features missing from Moodle as usability goes, IMHO.<p><br>Hope someone has time to add this at some point smile

 
Average of ratings: -
Picture of Amanda Doughty
Re: Undelete or recycler for all deleted items?
Group Developers

This would save a huge amount of grief for us.  Big plus one from me

 
Average of ratings: -
Picture of Aleks Macheta
Re: Undelete or recycler for all deleted items?
 

Really good idea Matt.  Totally support this.

Best wishes,

Aleks

 

 
Average of ratings: -
Picture of Peter Roberts
Re: Undelete or recycler for all deleted items?
Group Testers

Hi Matt

That's an interesting idea. It would be great for occasions when staff delete things and ask for them back days / weeks later. Makes sense, given that disk space is getting cheaper these days and staff time getting ever more pressured.

What would happen in the event of a course reset? Maybe a global admin setting could be 'safe reset'. If this was set - resetting a course would basically clone it and hide the old one.

Pete Roberts
GLEU

 
Average of ratings: -
Picture of Mira Vogel
Re: Undelete or recycler for all deleted items?
 

Certainly where I work there are enough inadvertent deletions, followed by incredulity that it could be that easy, to make this a really good idea.

Mira

 
Average of ratings: -
Picture of Emma Richardson
Re: Undelete or recycler for all deleted items?
Group Particularly helpful Moodlers

I agree that this would be a great feature.  I suggest you create a feature request on tracker and post the link so that we can all vote for it.

 
Average of ratings: -
Picture of Matt Jenner
Re: Undelete or recycler for all deleted items?
 

OK - thanks all for the input, I've made the Tracker entry  - I just wanted to see if I'd missed anything, or misunderstood the concept, but it seems we agree smile

 
Average of ratings: -
Picture of Leo Havemann
Re: Undelete or recycler for all deleted items?
 

We are always asked about the location of the ‘undo’ button, so I think this would be a brilliant development Matt – thanks for following up.

Best, Leo

 
Average of ratings: -
Picture of Leo Havemann
Re: Undelete or recycler for all deleted items?
 

In terms of how this might work, what if deleting moved items into the orphaned activities area - which is already a recycle bin of sorts?

 
Average of ratings: -
Just wondering . . .
Re: Undelete or recycler for all deleted items?
Group Particularly helpful Moodlers

OK, voted, although I think the specifications may need to be fine tuned a little as to the exact workflow needed to get this into Moodle and nice and smooth.  Dare I say intuitive.

 
Average of ratings: -
Picture of Rodolfo Siles
Re: Undelete or recycler for all deleted items?
 

We definitively need that functionality. I accidentally deleted and activity that took me an hour to create. If only it had a delete warning or a place where I can recover it. I will post this request on the forums, or even better a petition with the White House.

 
Average of ratings: -
Kinde M
Re: Undelete or recycler for all deleted items?
 

Does this mean I cannot recover my forum post and all replies I have just deleted by accident?

Don't say yes!

I can even see everything fine when a click the back button on the browser. Since this forum post was made a year a go there might be some solution since then.

 
Average of ratings: -
Picture of Bonni Shuttleworth
Re: Undelete or recycler for all deleted items?
 

I would love a recycle bin or some way to undelete an item. I deleted an assignment link, which included PoodLL feedback and a grade in the gradebook. Students are worried about it as am I, but fortunately I keep a paper log. It would be so easy to go to the recycle bin, litter box or whatever it would be called and restore that assignment. Perhaps it could be called RoodLL - restore.

 
Average of ratings: -
Picture of Marc Z
Re: Undelete or recycler for all deleted items?
 

I came looking for a possible solution to recovering a deleted assignment (the last backup was from before the assignments were uploaded/graded).

When I saw in this thread that Matt had submitted a request for this functionality to the tracker a couple of years ago, I admit that I got my hopes up a little that maybe it had been implemented since then.

That tracker was closed, but it was suggestion to break out the request into a separate "tracker entry submitted for each area where Moodle deleted content that we wish it didn't." 

As far as I can tell, it looks like that never happened, though. I'd love to see this idea get some traction again. How might one go about doing that? I'm not familiar with the tracker submission process and would have no idea where to begin with that.

 
Average of ratings: -
Just wondering . . .
Re: Undelete or recycler for all deleted items?
Group Particularly helpful Moodlers

Marc Z, Tracker: http://docs.moodle.org/dev/Tracker_guide ie create an account, browse the items, follow them and create a new issue if you like.  Some people post in the forums first as sort of a canvas of opinion, and shaping the words.  If you want to run something pas us, post again here.

There are two views on tracker: developers think it is an easy process.  Others hate it.  And a few inbetween views.

Tips on creating tracker items, and interfacing with developers:

https://moodle.org/mod/forum/discuss.php?d=43952

-Derek

 
Average of ratings: -