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!

Manually initiate backup with Amazon S3

Discussion in 'Data Protection' started by tribulant, Mar 3, 2014.

  1. tribulant

    tribulant Member

    Joined:
    Mar 3, 2014
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Good day,

    I installed the CURRENT release 11.42 which has the Amazon S3 destination feature for backups.

    How can I manually initiate a backup to /backups and also to Amazon S3 instead of waiting?
    I just want to test it to ensure it works to have peace of mind.

    Thank you for your assistance.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,351
    Likes Received:
    404
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I believe this command would force backups to run:

    Code:
    /usr/local/cpanel/bin/backup --force
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tribulant

    tribulant Member

    Joined:
    Mar 3, 2014
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Thanks, I'll try it out.

    Is this for the new backup system or the legacy backup system?

    All commands I found in the documentation and online keep telling me that the legacy backup system is disabled. That's the idea... I want to use the new backup system with Amazon S3 destination in version 11.42
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes, you can force a generation of backups with the new backup system via:

    /usr/local/cpanel/bin/backup --force

    The legacy backup system uses:

    /usr/local/cpanel/scripts/cpbackup

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

    tribulant Member

    Joined:
    Mar 3, 2014
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Excellent, thank you very much!
    This was very useful and I'm sure that others will find it useful too.
     
  6. luminary

    luminary Registered

    Joined:
    Jun 20, 2014
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    When I did this, I received the following error in the log file:

    Code:
    /bin/gtar: /var/cpanel: file changed as we read it
    [backup] Failed to perform full backup of /var/cpanel/ to /backup/2014-11-10/system/dirs/_var_cpanel.tar.gz
    Is this only because it was a forced backup? Will a regularly scheduled backup work?
     
    #6 luminary, Nov 10, 2014
    Last edited by a moderator: Nov 11, 2014
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    It failed due to the following message:

    The /var/cpanel directory or it's contents changed as it was read. It's likely a rare occurrence for that to happen, but monitor your backup logs in /usr/local/cpanel/logs/cpbackup to see if it continues to occur.

    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