Cloudflare DDNS Sync
StartSyncChangelog
  • Overview
  • Configuration
  • Functions
  • Cron Expression Syntax
  • Changelog
  • Functions
    • Constructor
    • getIp
    • getIpv6
    • getRecordDataForDomain
    • getRecordDataForDomains
    • getRecordDataForRecord
    • getRecordDataForRecords
    • removeRecord
    • syncByCrontime
    • syncOnIpChange
    • stopSyncOnIpChange
    • syncRecord
    • syncRecords
  • Types
    • DomainRecordList
    • Record
    • RecordData
    • RecordTypes
    • SingleSyncCallback
    • MultiSyncCallback
    • ZoneData
    • ZoneMap
Powered by GitBook
On this page

Was this helpful?

  1. Functions

syncByCrontime

PreviousremoveRecordNextsyncOnIpChange

Last updated 5 years ago

Was this helpful?

cddnss.syncByCrontime

Syncs the given records according to the.

Parameters:

  • cronExpression The according to which the records should be updated. [string]

  • records The records that should be updated. [Array<>]

  • callback The callback that gets called every time the updating was done. []

Returns:

  • The data of the DNS records []

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