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!

SOLVED What Is Generating cpmove Files

Discussion in 'Data Protection' started by Dradden45, Nov 9, 2017.

  1. Dradden45

    Dradden45 Active Member

    Joined:
    Sep 7, 2012
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    I have a server that is generating cpmove files in /home on a nightly basis. In Backup Configuration backups are disabled. In Backup User Selection all accounts are switched to "off".

    What else would be generating these cpmove files?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Do you have any custom cron jobs configured to run that are manually backing up accounts? You can view a list of root cron jobs via the following command:

    Code:
    crontab -l
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Dradden45

    Dradden45 Active Member

    Joined:
    Sep 7, 2012
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    I didn't even think to check as I did not add any custom crons, but I see these:

    Code:
    0 1 * * * /usr/local/cpanel/scripts/cpbackup
    0 2 * * * /usr/local/cpanel/bin/backup
    
    Were these set by the backup configs in whm? If so shouldn't they have been deleted when I had disabled backups?

    Thanks!
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Those are the standard cPanel backup cron jobs. They always exist, and detect whether backups are enabled or disabled before attempting to generate the backup archives. Thus, they are unlikely to result in the issue you are describing.

    Could you open a support ticket using the link in my signature so we can take a closer look at your system?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelRyland

    cPanelRyland cPanel Technical Analyst
    Staff Member

    Joined:
    Oct 4, 2017
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    78
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hello,

    Thank you for reaching out to us. The cpmove files appear to have been caused by a custom perl script being run as a cron. It was located within /etc/cron.daily.

    Thanks,
     
    cPanelMichael and Dradden45 like this.
  6. Dradden45

    Dradden45 Active Member

    Joined:
    Sep 7, 2012
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    @cPanelRyland thanks for that. I didn't even think to check as I do not remember adding anything. In fact completely opposite I usually add a cron to cleanout backups since we have another solution that backs up offsite.
     
  7. Dradden45

    Dradden45 Active Member

    Joined:
    Sep 7, 2012
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Just wanted to update this. I used to use Backuprun but moved to my own R1 setup awhile ago. Backupruns installer is the one responsible for this file and it seems on removal does not clean it. From their installer:

    Code:
    function install_watch_script {
        SCRIPT=/etc/cron.daily/cPanel-backup.pl
        if [ -z "$WATCH_SCRIPT" ]; then
            return;
        fi
        mark "Installing cPanel-backup script";
        echo "$WATCH_SCRIPT" >$SCRIPT
        chmod +x $SCRIPT
        log "`ls -l $SCRIPT 2>&1`"
        log "`cat $SCRIPT 2>&1`"
    }
    
    Maybe this will come in handy to somebody else.
     
    cPanelMichael likes this.
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