> For the complete documentation index, see [llms.txt](https://cddnss.knaup.pw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cddnss.knaup.pw/function-list/syncbycrontime.md).

# syncByCrontime

### cddnss.syncByCrontime

Syncs the given records according to the[ cron expression](/cron-expression-syntax.md).

####

#### Parameters:

* `cronExpression` *The*  [*cron expression*](/cron-expression-syntax.md) *according to which the records should be updated.* `[string]`&#x20;
* `records` *The records that should be updated.* `[Array<`[`Record`](/types/record.md)`>]`
* `callback` *The callback that gets called every time the updating was done.* `[`[`MultiSyncCallback`](/types/multisynccallback.md)`]`

####

#### Returns:

* *The data of the DNS records* `[`[`ScheduledTask`](https://www.npmjs.com/package/node-cron#scheduledtask-methods)`]`

```typescript
const scheduledTask: ScheduledTask = 
  cddnss.syncByCrontime('*/10 * * * * *', records, (recordData: Array<RecordData>) => {
    console.log(recordData);
  });
```
