Check backup configuration from SSH
Hi,
Is there anyway superuser can check either cPanel backups are enabled or not, which is local directory where backups are being stored & what is the retention?
We're in between an audit in which we're checking the server's backup configuration, retention & verifying backups. Since we've more than a hundred servers so we really want to automate this task by writing bash script to do this. It will be really helpful if we can check the backup configuration from SSH.
Thanks
-
Hi, You can check the configuration using the below command. # cat /var/cpanel/backups/config 0 -
I'd recommend using the API. WHM API 1 Functions - backup_config_set - Software Development Kit - cPanel Documentation Look at the example they provided for Command Line 0 -
Hello, The previous posts should help. Let us know if you have any additional questions. Thanks! 0
Please sign in to leave a comment.
Comments
3 comments