The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Determining legacy backup system enabled against new backup system

Discussion in 'Data Protection' started by Deehem, Mar 4, 2014.

  1. Deehem

    Deehem Member
    PartnerNOC

    Joined:
    Jul 6, 2006
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,786
    Likes Received:
    665
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. Deehem

    Deehem Member
    PartnerNOC

    Joined:
    Jul 6, 2006
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Preston, UK
    cPanel Access Level:
    DataCenter Provider
    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?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,786
    Likes Received:
    665
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page