Menu

Hive Server2 Backup

The backup script dump the logs and the configuration.

module.exports = header: 'Hive Server Backup', handler: ({options}) ->

Backup Logs

Archive the logs generated by the Hive Server2.

  @tools.backup
    header: ''
    name: 'logs'
    source: options.log_dir
    filter: "hive-server2.log.*"
    target: "/var/backups/hive-server2/"
    interval: month: 1
    retention: count: 2

Backup Configuration

Backup the active Hive configuration.

  @tools.backup
    header:'Backup Logs'
    name: 'conf'
    source: options.server2.conf_dir
    target: "/var/backups/hive-server2/"
    interval: month: 1
    retention: count: 2