---
title: "oz0 routine backfill"
description: "Run the fires a schedule trigger would have made between --from and --to (RFC 3339 times, or durations ago such as 6h), for example after the routine was paused."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/routine/backfill"
---
# oz0 routine backfill

> Run the fires a schedule trigger would have made between --from and --to (RFC 3339 times, or durations ago such as 6h), for example after the routine was paused.

For: Operators and developers looking up a command.

Run the fires a schedule trigger would have made between --from and --to (RFC 3339 times, or durations ago such as 6h), for example after the routine was paused. --overlap buffer_all runs them one after another; the trigger's own overlap policy applies when it is not set, and allow_all is refused. A paused or stopped routine is not backfilled, and one backfill starts at most limits.max_fires_per_hour fires, and no more than what is left of the daily budget pays for.

Operators may.

## Usage

```bash
oz0 routine backfill <name> --from <time> --to <time> [flags]
```

## Flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --from
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      start: an RFC 3339 time, or how long ago, such as 6h
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --overlap
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      skip, buffer_one, buffer_all, cancel_other or terminate_other
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --tenant
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      tenant
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --to
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        0s
      </code>
    </td>
    
    <td>
      end: an RFC 3339 time, or how long ago
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --trigger
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      the schedule trigger, when the routine has several
    </td>
  </tr>
</tbody>
</table>

## Inherited flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --context
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        $OZ0_CONTEXT or &lt;config dir>/orchestrator-zero/context.json
      </code>
    </td>
    
    <td>
      CLI context file written by server init
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --log-level
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        info
      </code>
    </td>
    
    <td>
      log level: debug, info, warn or error
    </td>
  </tr>
</tbody>
</table>

See [all `oz0` commands](https://docs.oz0.ai/reference/cli/oz0) and the [global flags](https://docs.oz0.ai/reference/cli/oz0#global-flags).


## Sitemap

See the full [sitemap](https://docs.oz0.ai/sitemap.md) for all pages.
