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.

New BackUp

Discussion in 'Data Protection' started by PCZero, Jun 15, 2013.

  1. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    526
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    Earth
    Just today I discovered the new back up in WHM. I am trying to set it up and test it (also disabled legacy backup) but I don't see what script the new backup uses. It appears the cpbackup still calls he old version. Can someone please point me in the right direction? Also wil the new back up will we be able to adjust the cron time as we can with the legacy?
     
  2. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    526
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    Earth
    Does anyone have a clue how this new backup is supposed to work? I run my back ups to an off site FTP. Worked liek a charm in the legacy back up but does not function at all in the new one.

    - - - Updated - - -

    Basically I JUST want a remote FTP back up (which the legacy system did perfectly) but no dice on the new one.
     
  3. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    526
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    Earth
    OK I got it figured out far enough to have the backups function yet I have not yet figured out how to set the cron time. Any help?
     
  4. Archmactrix

    Archmactrix Well-Known Member

    Joined:
    Jan 20, 2012
    Messages:
    132
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Do you have /usr/local/cpanel/bin/backup in crontab with something like this?:

    Code:
    0 2 * * * /usr/local/cpanel/bin/backup
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, the new backup script is located at:

    Code:
    /usr/local/cpanel/bin/backup
    You can edit the time this script runs with a command such as:

    Code:
    crontab -e
    Thank you.
     
  6. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    526
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    Earth

    Thank you Michael. Very helpful. I never had a need to manually edit the crontab before and I was not sure doing so in a WHM/cPanel environment was a good idea. Is this something that will be reset/overridden on a WHM/cPanel update/
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    That specific cron job will not be overwritten by a cPanel update. If you prefer a visual interface for modifying root cron jobs, you can install the "Cron Config" plugin via:

    "WHM Home » cPanel » Manage Plugins"

    Thank you.
     
  8. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    526
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    Earth
    Thank you Michael. You have been extremely helpful. I do already have that plug in installed however it only shows two lines. One is for upcp and the other is for cpbackup. I do not see a line specifically for the new back up, just the legacy cpbackup. Any hints on how to proceed?



    BTW, flease feel free to share with those you report to that you have helped someone and done an extraordinary job doing so, Sometimes it is a simple direct and clear answer to a question that is best. It allows the person seeking information to get what they need and move on. Thank again. job well done.
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The "/usr/local/cpanel/bin/backup" cron job is currently not available in the "Cron Config" plugin page. There are plans to add this in a future build of cPanel, but there is no specific ETA on that at the moment. In the meantime, the workaround is to edit this cron job manually from the command line using the "crontab -e" command.

    Thank you.
     
  10. leonex

    leonex Member

    Joined:
    Jan 12, 2012
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello, i have question about new backup system. I testing this sistem
    1. disable legacy backup
    2. enable new backup
    3. enable account for new backup system in backup > Backup User Selection
    4. mkdir /newfolder
    5. configure ftp connection to another server and set to enable
    6. validate all destionation and it passed
    7. run script /usr/local/cpanel/bin/backup
    Result is, backup is created but not transfer to ftp server, is locate in /newfolder
    Where I went wrong? Sorry for my english ....
     
  11. leonex

    leonex Member

    Joined:
    Jan 12, 2012
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Solved.... name of folder is data of creation and not daily, monthly :)
     
  12. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    526
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    Earth
    Yep Michael got that! :) Anyway thanks again for the replies. Your information was not only factual and exact but was presented in a manner that was extremely helpful. It is vastly appreciated...
     
  13. Jonathan More

    Jonathan More Active Member

    Joined:
    Apr 21, 2011
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Hi, I have some problem with new backup. After I enabled it and disabled the old one, I started to get daily reports that backup has failed. Today I tested forcing a backup /usr/local/cpanel/bin/backup and got this warning:

    warn [backup] The other backup type is running as evidenced by the existence of: /var/cpanel/backuprunning (Edit: This file has only number 26669 in it)
    info [backup] backup is waiting for the other backup to complete

    Is this warning from the legacy backup? How could I disable it and get the new version to run?

    (Or could this be the rsync problem to outside server, that started some time ago? At the moment, I would be interested only to get local backups working properly.)
     
    #13 Jonathan More, Jun 28, 2013
    Last edited: Jun 28, 2013
  14. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    526
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    Earth
    All of a sudden my backups are messing up. I did notice that this coincides with the first attempt at a monthly back up. Anyway after one or two of my sites are backed up (remote FTP) my FTP site is set to disabled (because of failed validation) in WHM. I even turned off 'disable on fail' but it still flips to disabled and the box gets rechecked.This is veyr odd and I need my FTP backups to work please.
     
  15. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    /var/cpanel/backuprunning contains the process ID for one of the backup processes. In your case, since the new backup system is reporting, it would contain the process ID for the legacy backup system (cpbackup). You can verify whether that process indeed is running with a command like:
    Code:
    ps aux | grep 26669
    
    If no process is returned, then you should be able to safely remove the /var/cpanel/backuprunning file.

    If the process terminates abnormally (e.g. someone issued a kill -9 on the process) then it cannot clean up after itself, resulting in things like /var/cpanel/backuprunning remaining on the system.
     
  16. Jonathan More

    Jonathan More Active Member

    Joined:
    Apr 21, 2011
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Thanks, that command returned this:

    root 16210 0.0 0.0 103240 840 pts/0 S+ 12:03 0:00 grep 26669
    root 26669 0.0 0.2 75912 21176 ? SNs Jun25 0:00 /usr/local/cpan el/scripts/cpbackup

    What should I do next?
     
  17. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    That indicates the legacy backup process is running. You can search for and review it's associated backup log file in the following directory:

    /usr/local/cpanel/logs/cpbackup/

    Check to see if the process is still active or generating backups per the log file. If it's just hanging, you can manually kill the legacy backup process.

    Thank you.
     
  18. chalupa

    chalupa Registered

    Joined:
    Jul 15, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Sorry to hijack thread, but any tips on where to look if the PID is not found but the file is still there? The time stamp is from this morning when the backup fired so It's not an old process and the box has been up for over a month so it's not a server crash that caused it.
     
  19. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you elaborate on what specific file you are referring to?

    Thank you.
     
Loading...

Share This Page