Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Deehem

    Deehem Member
    PartnerNOC

    Joined:
    Jul 6, 2006
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    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:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice