Determining legacy backup system enabled against new backup system

Deehem

Member
PartnerNOC
Jul 6, 2006
18
0
151
Preston, UK
cPanel Access Level
DataCenter Provider
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!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

The following command will allow you to determine if backups are enabled on the legacy backup system:

Code:
grep BACKUPENABLE /etc/cpbackup.conf
For the new backup system, this command is used:

Code:
grep BACKUPENABLE /var/cpanel/backups/config
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.