Skip to main content

Script to enable/disable Backup Configuration "Additional Destinations"

Comments

2 comments

  • cPanelLauren
    The WHMAPI1 does indeed handle this with the following:
    0
  • techguide
    It if helps anyone else, on cpanel 86, these scripts work to enable/disable remote backup destinations: [root]#cat DisableDestination.sh #!/bin/sh # Will disable the remote destination /usr/local/cpanel/bin/whmapi1 backup_destination_set type=Rsync id={your backup destination ID here} name={your backup destination name here} disabled=1 [root]# cat EnableDestination.sh #!/bin/sh #Will enable the remote destination /usr/local/cpanel/bin/whmapi1 backup_destination_set type=Rsync id={your backup destination ID here} name={your backup destination name here} disabled=0 Then execute the scripts at certain day/times via a cronjob (the example below enable on thursdays at 12:30am, disable on Thursdays at 7am): 30 0 * * THU /root/EnableDestination.sh 2>&1 00 7 * * THU /root/DisableDestination.sh 2>&1
    0

Please sign in to leave a comment.