Determining legacy backup system enabled against new backup system
Hi,
I'm currently revising a script we use internally to check backup dates, I'm now at a loss.
We're slowly migrating machines across to the new backup system, but there are still a handful using the legacy backup system.
I'm looking for a way to determine whether the new backup system is enabled against the legacy backup system (preferably from a configuration file rather than anything else), to avoid any complications.
I've taken a look at /etc/cpbackup.conf but I haven't found anything obvious that links between these two conditions.
Any pointers would be appreciated. Thanks!
-
Hello :) The following command will allow you to determine if backups are enabled on the legacy backup system: grep BACKUPENABLE /etc/cpbackup.conf
For the new backup system, this command is used:grep BACKUPENABLE /var/cpanel/backups/config
Thank you.0 -
Thank you Michael. That's perfect. Just one question - why is /var being used for a configuration file in this instance as opposed to /etc? 0 -
It makes sense to store configuration files for the new backup system in /var/cpanel/backups because it's a feature of cPanel. Thank you. 0
Please sign in to leave a comment.
Comments
3 comments