Hourly backup, only if something has changed

Hourra !

It is simplier than we expected ! Discourse rocks ! :smiley:

Here is my Hourly Backup plugin : https://github.com/fredericmalo/discourse_hourlybackup_plugin

And it works ! :slight_smile: To be honest, I don’t understand any line of code, but it works :smile:

https://github.com/fredericmalo/discourse_hourlybackup_plugin/blob/master/plugin.rb#L8-L21

So now, can someone help me to turn this question into ruby ?

Please sweet discourse instance, can you tell me if something has changed since one hour ?

Is there any Discourse API that I can request to know if something in the content has changed during a lapse of time ? INSERT/UPDATE/DELETE of a post or a file should be enough.

Many thanks for your help ! :slight_smile:

1 Like