Friday, 31 January 2014

Enable backups for all accounts in cpanel


The following will enable legacy backups for all accounts

Code:

https://<hostname>:2087/<session_token>/xml-api/backup_skip_users_all?api.version=1&backupversion=legacy_backups&state=1

The following will disable legacy backups for all accounts.

Code:

https://<hostname>:2087/<session_token>/xml-api/backup_skip_users_all?api.version=1&backupversion=legacy_backups&state=0

The following will enable all accounts for the new backup system.

Code:

https://<hostname:2087/<session_token>/xml-api/backup_skip_users_all?api.version=1&backupversion=backups&state=1

The following will disable all users from using the new backup system.

Code:

https://<hostname>:2087/<session_token>/xml-api/backup_skip_users_all?api.version=1&backupversion=backups&state=0

Running any of the mentioned API calls will take some time to update (depending on how many accounts your machine has). Took me an average 10 minutes to disable legacy backup on 300 accounts.

No comments:

Post a Comment