# How can I disable start of missed backups when duplicati start?

**URL:** <https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090>\
**Category:** Features\
**Created:** [January 13, 2018, 9:39am UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090 "2018-01-13T09:39:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![D312](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/d/7ba0ec/32.png) [@D312](https://forum.duplicati.com/u/D312)\
**Post date:** [January 13, 2018, 9:39am UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/1 "2018-01-13T09:39:44Z")

</div>

Hi there!

How can I disable start of missed backups when duplicati starts? I can’t find this option.

---

<div class="post-metadata">

**Author:** ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)\
**Post date:** [January 13, 2018, 10:40pm UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/2 "2018-01-13T22:40:29Z")

</div>

Hi @D312, welcome to the forum!

> [@D312](#):
>
> How can I disable start of missed backups when duplicati starts?

This isn’t something I’ve tried to do before so I could be wrong but as far as I know there isn’t an option to do that, though @kenkendk would know for sure.

If it’s something from which you think Duplicati might benefit, can you describe how you’d expect such as feature to work?

---

<div class="post-metadata">

**Author:** ![samw](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/9de053/32.png) [@samw](https://forum.duplicati.com/u/samw)\
**Post date:** [January 14, 2018, 1:14am UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/3 "2018-01-14T01:14:07Z")

</div>

Hey @D312. You can’t disable this behavior and it’s in place for a reason. The only suggestion I could make, if you want to stop this functionality is to disable the Duplicati scheduler and use an operating system scheduler to run your backups.

---

<div class="post-metadata">

**Author:** ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)\
**Post date:** [January 14, 2018, 2:34am UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/4 "2018-01-14T02:34:28Z")

</div>

@samw has a good suggestion there.

You **_might_** also be able to use a `--run-script-before-required` process to check the time and disallow the job to run if it’s not near/at the scheduled run time.

---

<div class="post-metadata">

**Author:** ![samw](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/9de053/32.png) [@samw](https://forum.duplicati.com/u/samw)\
**Post date:** [January 14, 2018, 2:47am UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/5 "2018-01-14T02:47:28Z")

</div>

Either that or use the Windows Scheduler or Cron on ~NIX type operating systems.

---

<div class="post-metadata">

**Author:** ![Serre](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/ce7236/32.png) [@Serre](https://forum.duplicati.com/u/Serre)\
**Post date:** [April 17, 2018, 7:07pm UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/6 "2018-04-17T19:07:57Z")

</div>

I also would like to have this option, because sometimes when I start my computer I don’t want some backups to run until scheduled. I guess I could use the built-in scheduler in Windows, but it would be easier to just have a command line argument like --disable-run-missed-backup (naming is hard).

---

<div class="post-metadata">

**Author:** ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)\
**Post date:** [April 17, 2018, 8:42pm UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/7 "2018-04-17T20:42:27Z")

</div>

Since what was asked about isn’t (yet) a feature I went ahead and changed the topic category to Features. Perhaps that will bring in a few more requests for the feature.

> [@Serre](#):
>
> naming is hard

It certainly can be - though personally I’d go for something like `--skip-missed-schedule-tasks`. (Hopefully that would make it clear that if one could schedule something like a restore it would ALSO be skipped.)

---

<div class="post-metadata">

**Author:** ![Serre](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/ce7236/32.png) [@Serre](https://forum.duplicati.com/u/Serre)\
**Post date:** [April 22, 2018, 3:34pm UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/8 "2018-04-22T15:34:24Z")

</div>

Cool, let’s hope more people wants this 🙂

Anyhow, I was thinking about maybe trying to implement this by myself. But how should one determine missed scheduled tasks? Maybe if the difference between now and start (here is more than let’s say 2 minutes, then consider that as a missed task?

---

<div class="post-metadata">

**Author:** ![kees-z](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kees-z/32/29_2.png) [@kees-z](https://forum.duplicati.com/u/kees-z)\
**Post date:** [April 23, 2018, 6:44am UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/9 "2018-04-23T06:44:49Z")

</div>

Please don’t do this, because probably it will break my own (and probably others) scheduled backups.

On several systems, I have multiple backup jobs that are scheduled one minute after each other. The result is, that all backups are executed right after each other. The proposed code change would skip most of my daily backup tasks.

A possible solution could be adding an extra command line option for `Duplicati.Server.exe` like `--skip-missed-scheduled-backups` that is set to `false` by default.

---

<div class="post-metadata">

**Author:** ![Serre](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/ce7236/32.png) [@Serre](https://forum.duplicati.com/u/Serre)\
**Post date:** [April 23, 2018, 6:59pm UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/10 "2018-04-23T18:59:36Z")

</div>

Yes, an extra cli option would be required as well for those that want to use this feature. I was just thinking about how a missed scheduled task should be determined.

---

<div class="post-metadata">

**Author:** ![handyguy](https://forum.duplicati.com/user_avatar/forum.duplicati.com/handyguy/32/252_2.png) [@handyguy](https://forum.duplicati.com/u/handyguy)\
**Post date:** [May 28, 2018, 9:10pm UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/11 "2018-05-28T21:10:38Z")

</div>

+1  
Sorry I missed this when It came up in April. I would support this option. For large backup sets where something has gone wrong and the system is off-line for a while. It’s a PITA to have to wait for Duplicati to run through several missed backups before being able to do anything with it. Having this as “False/Off” by default is fine, just so long as it is available somewhere.

---

<div class="post-metadata">

**Author:** ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)\
**Post date:** [May 31, 2018, 2:44pm UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/12 "2018-05-31T14:44:44Z")

</div>

> [@kees-z](#):
>
> `--skip-missed-scheduled-backups` that is set to `false` by default.

I have created a basic GitHub enhancement request for something that maybe will do what people want. Feel free to take a look and comment or, better yet, add a bounty. 😉

> <https://github.com/duplicati/duplicati/issues/3251>
>
> \- \[x \] I have searched open and closed issues for duplicates.
> 
> \---------------…-------------------------
> 
> \## Environment info
> 
> 
> \- \*\*Duplicati version\*\*: N/A - new feature request
> \- \*\*Operating system\*\*: N/A
> \- \*\*Backend\*\*: N/A - scheduling related
> 
> \## Description
> 
> Replace me
> 
> \## Steps to reproduce
> 
> 1. Have a job run past the next scheduled backup time OR have a machine be off during a scheduled backup time.
> 
> 
> 
> \- \*\*Actual result\*\*:
> As soon as long-running job ends "missed" scheduled one immediately starts OR as soon as machine powers up missed jobs immediately start.
> \- \*\*Expected result\*\*:
> It would be nice if one could enable a boolean parameter such as \`--skip-missed-scheduled-backups\` that would NOT run backups with missed schedules. Alternatively, more features could be supported with an options parameter such as \`--missed-scheduled-backups=run|skip-running|skip-busy|skip-offline|skip-power\` where:
> - run or \[blank\] (default) runs them as it does now
> - skip-running does NOT run them if they were missed because a previous run of the same backup was still running
> - skip-busy does NOT run them if they were missed because Duplicati was busy doing something else (same backup, different backup, restore, etc.)
> - skip-offline does NOT run them if they were missed because Duplicati was not running or the destination was offline
> - skip-power does NOT run them if they were missed because device was on battery power (https://github.com/duplicati/duplicati/issues/3148)

---

<div class="post-metadata">

**Author:** ![drakar2007](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drakar2007/32/230_2.png) [@drakar2007](https://forum.duplicati.com/u/drakar2007)\
**Post date:** [May 31, 2018, 2:59pm UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/13 "2018-05-31T14:59:20Z")

</div>

> [@kees-z](#):
>
> The proposed code change would skip most of my daily backup tasks.

The solution for this would be to make the “skip missed jobs” option smarter, instead of not having it.

For instance, the option could have a threshold for the amount of time that needs to elapse before a job is considered “missed”; I’d expect roughly \>90% of the backup jobs we want Duplicati to skip would be more than an hour past due, and \>80% of them would be more than 2 hours past due, so finding a “comfortable” number of minutes to populate by default here should be very, very easy (there’s almost no penalty for going ‘big’ on this - the result would be identical to the current default mode of operation).

Another option, or at least a new back-end feature that could help this and other queueing issues, would be to have Duplicati keep track of “queued” versus “missed” jobs.

- “Queued”: job A was running when job B’s execution time arrived, so job B is “queued”.
- “Missed”: job C’s execution time is already elapsed when duplicati first starts up for the day, so duplicati treats job C as simply “missed”.

It seems Duplicati treats both of these scenarios identically at the moment, which is understandable, but it seems that adding a tiny bit more complexity here would allow a bunch of other issues to potentially be resolved more gracefully.

---

<div class="post-metadata">

**Author:** ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)\
**Post date:** [June 1, 2018, 12:19am UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/14 "2018-06-01T00:19:17Z")

</div>

I’m not finding it right now but I think I suggested a similar “buffer” idea related to dealing with not-always-available destinations - something like “retry every X minutes UNLESS a successful backup happened less than Y minutes ago”.

So in this case something like `--job-buffer-mins=X` could mean “don’t run this job if it successfully finished less than X minutes ago”. Of course if a job run is “skipped” because of such a buffer it should definitely be logged as the reason for not running the job…

---

<div class="post-metadata">

**Author:** ![tygill](https://forum.duplicati.com/user_avatar/forum.duplicati.com/tygill/32/1551_2.png) [@tygill](https://forum.duplicati.com/u/tygill)\
**Post date:** [June 1, 2018, 2:52am UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/15 "2018-06-01T02:52:08Z")

</div>

Another thought I’ve had on this (from the perspective of “I want to be able to use my computer when I turn it on after missing a scheduled backup”) is that the backup reattempt could be delayed when a missed backup is detected (e.g., when it sees that a backup missed its scheduled time, it waits 30 minutes before starting it).

---

<div class="post-metadata">

**Author:** ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)\
**Post date:** [June 1, 2018, 5:55am UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/16 "2018-06-01T05:55:24Z")

</div>

> [@tygill](#):
>
> from the perspective of “I want to be able to use my computer when I turn it on after missing a scheduled backup”

The only thing I’d be worried about on this is it could push things long enough to make a cascade of late jobs later and later.

I’m curious if you use the CPU (been around a while) or disk IO settings (only newer 2.0.3.x canary?) and how much hey are NOT helping your computer to be usable when a job is running…

---

<div class="post-metadata">

**Author:** ![prez](https://forum.duplicati.com/user_avatar/forum.duplicati.com/prez/32/1885_2.png) [@prez](https://forum.duplicati.com/u/prez)\
**Post date:** [June 14, 2018, 7:31am UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/17 "2018-06-14T07:31:34Z")

</div>

For me, I think Duplicati needs to be smarter in it’s scheduling.

Specifically, I know a bunch of backups were missed. However if a backup was completed WITHIN the backup frequency time ago, don’t try and do another backup!

I have a problem where I have a backup duration set to happen every 2 hours. My previous backup might have completed say 30 minutes ago, however because some backups before that previous one were missed for that data set, it will immediately try and re-run that backup that completed 30 minutes ago, despite the next one not being scheduled for another hour or more, and the last backup completing well within my scheduled frequency.

The same behavior happens if I restart duplicati - even though the last backup was less than the backup frequency ago, it will actually kick of ALL backups.

Now maybe this is a bug with having sub-1 day backups, but this should not matter. This is moronic behavior from the scheduler. Just because I missed a previous backup, if the last backup was less than ago, just wait until the next schedule time.

---

<div class="post-metadata">

**Author:** ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)\
**Post date:** [June 15, 2018, 5:03pm UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/18 "2018-06-15T17:03:37Z")

</div>

> [@prez](#):
>
> My previous backup might have completed say 30 minutes ago, however because some backups before that previous one were missed for that data set, it will immediately try and re-run that backup that completed 30 minutes ago, despite the next one not being scheduled for another hour or more, and the last backup completing well within my scheduled frequency.

I’m going to try and re-jigger your scenario just to make sure I’m understanding it correctly.

1. Backup D (daily) didn’t run last night because the power was off, so when the computer is turned on it starts
2. Because Backup D is still running, backup H (hourly) starts late causing it to end slightly AFTER its next scheduled run time
3. Backup H immediately starts up again because the previous run caused THIS run to be late

> [@prez](#):
>
> Now maybe this is a bug with having sub-1 day backups, but this should not matter. This is moronic behavior from the scheduler

Running missed backups is not a bug - it’s by design and the scheduler was written that was specifically to be on the safe side.

Consider the opposite of your situation where the system only has a weekly or monthly backup. If that scheduled time is missed and we don’t run the job “as soon as possible” the system could end up with 2 weeks or 2 MONTHS between backups.

It sounds like what you might want is a simple (perhaps job specific) checkbox, something like “Do not run job if scheduled start time is missed.”

---

<div class="post-metadata">

**Author:** ![prez](https://forum.duplicati.com/user_avatar/forum.duplicati.com/prez/32/1885_2.png) [@prez](https://forum.duplicati.com/u/prez)\
**Post date:** [June 15, 2018, 6:23pm UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/19 "2018-06-15T18:23:02Z")

</div>

@JonMikelV Actually, I don’t mind it running missed backups. But only if has been longer than since the last successful backup.

In other words, say I had a daily backup, and for some reason my computer was down for 5 days.

I DO want it to run a backup as soon as it starts, because the last backup was 5 days ago. What I DONT want is for it to run 5 backups in a row. As long as the last successful backup is less than a day old, there is no reason not to wait for the scheduled time.

What I was seeing is it would repeatedly run the same backups again, even though the last successful backup was within the backup frequency and a new backup was scheduled for not long from now anyway.

In other words, run at most ONE missed backup, which does not appear to be the behavior I have observed.

---

<div class="post-metadata">

**Author:** ![prez](https://forum.duplicati.com/user_avatar/forum.duplicati.com/prez/32/1885_2.png) [@prez](https://forum.duplicati.com/u/prez)\
**Post date:** [June 15, 2018, 6:25pm UTC](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090/20 "2018-06-15T18:25:17Z")

</div>

I should also note, most of the missed backups in my scenario were actually because I was performing the ‘initial backup’ of some other large data sets on the same host, meaning that they took a long time to do their initial backup (and since my backup frequency is 2 hours, having an 8 or 12 hour backup is going to cause 4 or 6 missed backups of the other data sets, because Duplicati only runs a single backup a time … which I also think should be an option in multi-threaded land :P)

[Next page](https://forum.duplicati.com/t/how-can-i-disable-start-of-missed-backups-when-duplicati-start/2090.md?page=2)
