132/461

## enable-backup-config

enables automatic backups defined by a domain backup configuration

Synopsis

    enable-backup-config [--help]
    backup-config-name

Description

The `enable-backup-config` subcommand sets the `autobackupenabled` option of a domain backup configuration to `true`, thus enabling automatic backups for the domain backup configuration.

This subcommand is supported in remote mode only.

Options

`--help`
`-?`

  Displays the help text for the subcommand.

Operands

backup-config-name

  Specifies the name of the domain backup configuration to enable.

Examples

Example 1 Enabling Automatic Backups

  This example enables automatic backups for the `weekly-backup` domain backup configuration. The example shows `list-backup-configs` commands before and after the `disable-backup-config` command to demonstrate that the `autobackupenabled` value changes from `false` to `true`.

      asadmin> list-backup-configs --long weekly-backup
      Name of Backup Config   :weekly-backup
      Auto Backup Enabled     :false
      Schedule                :weekly
      Recycle Limit           :5
      Config Only backup      :true
      Active Backup Enabled   :false
      Backup Directory        :null
      Last Backup Attempt     :
      Last Successful Backup  :

      Schedule Details:
      NAME    SECOND  MINUTE  HOUR  DAY OF WEEK  DAY OF MONTH  MONTH  YEAR
      weekly  0       0       0     Sun          *             *      *
      asadmin> enable-backup-config weekly-backup
      Command enable-backup-config executed successfully.
      asadmin> list-backup-configs --long weekly-backup
      Name of Backup Config   :weekly-backup
      Auto Backup Enabled     :true
      Schedule                :weekly
      Recycle Limit           :5
      Config Only backup      :true
      Active Backup Enabled   :false
      Backup Directory        :null
      Last Backup Attempt     :
      Last Successful Backup  :

      Schedule Details:
      NAME    SECOND  MINUTE  HOUR  DAY OF WEEK  DAY OF MONTH  MONTH  YEAR
      weekly  0       0       0     Sun          *             *      *

Exit Status

0

  subcommand executed successfully

1

  error in executing the subcommand

See Also

create-backup-config(1), delete-backup-config(1), disable-backup-config(1), list-backup-configs(1)

asadmin(1M)