# How to schedule jdbc to run on every sunday?

**URL:** <https://discuss.elastic.co/t/how-to-schedule-jdbc-to-run-on-every-sunday/67338>\
**Category:** Logstash\
**Created:** [November 28, 2016, 11:55am UTC](https://discuss.elastic.co/t/how-to-schedule-jdbc-to-run-on-every-sunday/67338 "2016-11-28T11:55:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabyasachi\_mallick](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@sabyasachi\_mallick](https://discuss.elastic.co/u/sabyasachi_mallick)\
**Post date:** [November 28, 2016, 11:55am UTC](https://discuss.elastic.co/t/how-to-schedule-jdbc-to-run-on-every-sunday/67338/1 "2016-11-28T11:55:08Z")

</div>

i want to update my elastic data source on weekly basis.And i want it to do on every sunday rather than updating in every 7 [days.Is](http://days.Is) there any way to do this?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 28, 2016, 12:05pm UTC](https://discuss.elastic.co/t/how-to-schedule-jdbc-to-run-on-every-sunday/67338/2 "2016-11-28T12:05:41Z")

</div>

Have you tried using the standard crontab notation, described in [http://stackoverflow.com/questions/16717930/how-to-run-crontab-job-every-week-on-sunday](http://stackoverflow.com/questions/16717930/how-to-run-crontab-job-every-week-on-sunday)?

---

<div class="post-metadata">

**Author:** ![sabyasachi\_mallick](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@sabyasachi\_mallick](https://discuss.elastic.co/u/sabyasachi_mallick)\
**Post date:** [December 2, 2016, 6:24am UTC](https://discuss.elastic.co/t/how-to-schedule-jdbc-to-run-on-every-sunday/67338/3 "2016-12-02T06:24:35Z")

</div>

yes! It is same as cron scheduling only. That helped.Thanks 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 30, 2016, 6:25am UTC](https://discuss.elastic.co/t/how-to-schedule-jdbc-to-run-on-every-sunday/67338/4 "2016-12-30T06:25:01Z")

</div>

Closed on December 30, 2016, 6:25am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
