
admin.databaseHourlyBackup( backup-dir as String, backup-period as Number, start-minute as xs.nonNegativeInteger, max-backups as (Number|String), backup-security-db as Boolean, backup-schemas-db as Boolean, backup-triggers-db as Boolean, [include-replicas as Boolean], [journal-archiving as Boolean?], [journal-archive-path as String?], [lag-limit as (Number|String)?] ) as element(db.databaseBackup)
This function constructs an hourly scheduled database backup specification.
  
  const admin = require('/MarkLogic/admin.xqy');
  const config = admin.getConfiguration()
    admin.databaseHourlyBackup("/backupDir", 2,
      30, 10, "true", "true", "true")
   //Returns the hourly database backup specification. For example, if the current
   //time is 2.15pm, the backup will run at 4.30pm, 6.30pm, 8.30pm, and so on. 
   
    
  const admin = require('/MarkLogic/admin.xqy');
  const config = admin.getConfiguration()
    admin.databaseHourlyBackup("/backupDir", 2,
      30, 10, "true", "true", "true","false","true",null,500)
   //Returns the hourly database backup specification. For example, if the current
   //time is 2.15pm, the backup will run at 4.30pm, 6.30pm, 8.30pm, and so on. 
   
  
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.