# Hourly backup, only if something has changed

**URL:** <https://meta.discourse.org/t/hourly-backup-only-if-something-has-changed/27274>\
**Category:** Feature\
**Tags:** backups\
**Created:** [4월 6, 2015, 9:57오후 UTC](https://meta.discourse.org/t/hourly-backup-only-if-something-has-changed/27274 "2015-04-06T21:57:56Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![frederic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frederic/32/38177_2.png) [@frederic](https://meta.discourse.org/u/frederic)\
**Post date:** [4월 7, 2015, 10:18오후 UTC](https://meta.discourse.org/t/hourly-backup-only-if-something-has-changed/27274/11 "2015-04-07T22:18:49Z")

</div>

Hourra !

> [@elberet](#):
>
> you can use cron to run a Ruby script that loads the Discourse app and triggers the Sidekiq job

It is simplier than we expected ! Discourse rocks ! 😃

Here is my Hourly Backup plugin : [https://github.com/fredericmalo/discourse\_hourlybackup\_plugin](https://github.com/fredericmalo/discourse_hourlybackup_plugin)

And it works ! 🙂 To be honest, I don’t understand any line of code, but it works 😄

[https://github.com/fredericmalo/discourse\_hourlybackup\_plugin/blob/master/plugin.rb#L8-L21](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 ! 🙂

---

_[View the full topic](https://meta.discourse.org/t/hourly-backup-only-if-something-has-changed/27274)._
