Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Aug 2011
    Posts
    6
    cPanel/Enkompass Access Level

    Root Administrator

    Default Configure backup

    Hi
    I am trying to use the WHM backup system and it doesn't seem to save my settings.
    When I first used it 2 days ago I selected a full back up of all sites to be sent to a remote server.
    I realised that I had not enough disk space on that second server and decided to backup only batabases (per account) and excluded 2 big accounts.
    This morning I see that these new settings were not taken into account.
    Looking at the log I saw that the backup system backed up full accounts as previously instead of databases only.
    The full backup failed then.

    I disabled "Backup Accounts" but it doesn't keep the setting.
    "Backup sql databases" is enabled (per account only).

    What am I doing wrong to backup only databases from whm?

  2. #2
    cPanel Staff cPanelMichael's Avatar
    Join Date
    Apr 2011
    Posts
    1,346
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Configure backup

    Hello

    When you enable "Remote FTP" backups, the only option is to backup the entire accounts. Backing up just the databases will only function when the standard backup option is enabled.

    Thank you.
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists - Documentation - Migration Services
    -- cPanelMichael - Migration Specialist, Technical Analyst, cPanel Technical Support

  3. #3
    Member
    Join Date
    Aug 2011
    Posts
    6
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Configure backup

    Thanks for the explanation.
    So I disabled the remote and tested the backup.
    I receive a mail saying "backup complete" and I check in /backup/cpbackup/daily and /backup/cpbackup/weekly, and I only find one file "cpbackupstatus.cfg" with last_run_time=1314180118 inside.
    Where are located the .sql files?
    I thought I would find them in /backup/cpbackup/daily and I would manage to send the folder to my remote server with a cron job everyday.

    In /usr/local/cpanel/logs/error_log I find this:

    [2011-08-24 12:01:58 +0200] warn [Cpanel::FileUtils::Move] /backup/cpbackup/daily/cpbackupstatus.cfg does not exist. at /usr/local/cpanel/Cpanel/FileUtils/Move.pm line 27
    Cpanel::FileUtils::Move::safemv('/backup/cpbackup/daily/cpbackupstatus.cfg', '/backup/cpbackup/daily/cpbackupstatus.cfg.bak') called at /usr/local/cpanel/scripts/cpbackup line 637
    main::update_last_run_time('/backup/cpbackup/daily') called at /usr/local/cpanel/scripts/cpbackup line 519
    Last edited by jimpic; 08-24-2011 at 06:24 AM.

  4. #4
    cPanel Staff cPanelMichael's Avatar
    Join Date
    Apr 2011
    Posts
    1,346
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Configure backup

    The entire MySQL directory should be available if you have enabled "Per Account and Entire MySQL Directory" for the "Backup SQL Databases" option. The standard location for the archive is:

    Code:
    /backup/cpbackup/daily/dirs/_var_lib_mysql_.tar.gz
    If the backup is not completing successfully, you can check the backup logs within:

    Code:
    /usr/local/cpanel/logs/cpbackup/
    Feel free to open a support ticket with our staff if the backups continue to fail:

    Submit A Ticket

    Thank you.
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists - Documentation - Migration Services
    -- cPanelMichael - Migration Specialist, Technical Analyst, cPanel Technical Support

  5. #5
    Member
    Join Date
    Aug 2011
    Posts
    6
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Configure backup

    Thank you.
    Dirs are not created in /backup/cpbackup/daily/ so I submitted a support ticket.

  6. #6
    cPanel Staff cPanelMichael's Avatar
    Join Date
    Apr 2011
    Posts
    1,346
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Configure backup

    The result of the ticket was that the "Backup Accounts" option needed to be enabled in order to have databases backed up on a per account level.

    Upon additional testing, if it's just the /var/lib/mysql directory you want backed up in it's entirety, you can enable "Backup Configuration Files" and "Per Account and Entire MySQL Directory". This will allow you to obtain a copy of the MySQL directory without backing up the accounts.

    Thank you.
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists - Documentation - Migration Services
    -- cPanelMichael - Migration Specialist, Technical Analyst, cPanel Technical Support

Similar Threads & Tags
Similar threads

  1. Configure backup - one time backup
    By will72wein in forum Data Protection
    Replies: 2
    Last Post: 02-09-2010, 09:47 AM
  2. Configure Backup
    By constantine in forum Data Protection
    Replies: 2
    Last Post: 01-03-2010, 11:25 AM
  3. Need help to Configure Backup
    By H@ssan in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-17-2006, 04:05 PM
  4. configure backup?
    By naji in forum Data Protection
    Replies: 2
    Last Post: 04-30-2006, 10:15 AM
  5. Configure backup
    By maxbia in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-08-2004, 08:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube