Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    May 2003
    Posts
    41

    Exclamation WHM/Cpanel Backup not compressing mysql dirs (possible bug?)

    I noticed today that the cpanel / whm backup is not compressing the mysql directories even when you select compression (ie even when you do NOT have incremental turned on). If you look in your /backup/cpbackup/daily/dirs/_var_lib_mysql_/ directories, you will see individual mysql databases/tables that are not compressed.

    My question is, why is this so? It's causing a large increase in the backup size for my server.

    -V

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Just checked on 2 servers and I have no subdirs within daily/dirs/ I would guess that you have an incomplete backup as what you should have is a file called /backup/cpbackup/daily/dirs/_var_lib_mysql_.tar.gz
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    May 2003
    Posts
    41

    Default

    Quote Originally Posted by chirpy
    Just checked on 2 servers and I have no subdirs within daily/dirs/ I would guess that you have an incomplete backup as what you should have is a file called /backup/cpbackup/daily/dirs/_var_lib_mysql_.tar.gz
    What do you have set for the following option?

    Sql Databases (at least per accounts is needed to use the restore feature)
    Per Accounts Only; Per Accounts and Entire Mysql Dir; Mysql Dir Only

    I have mine set to "Per Accounts and Entire Mysql Dir;"
    I don't think it's incomplete. I have the file you mentioned plus the subfolders.


    -V

  4. #4
    Member
    Join Date
    May 2003
    Posts
    41

    Default

    By the way, I notice that the .gz file you mentioned (which I also have) is one huge file when uncompressed. If someone was to restore an individual user's mysql database, would there be any possible way to use that file or is that only for a complete restore?

    -V

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    I have "Per Accounts and Entire Mysql Dir;" enabled too. I understood this to create the per user .sql files witin the users account.tar.gz and the big one to simply be everything. Maybe mine is the on not working

    I'm not much a whizz with MySQL, so cannot answer the last question.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  6. #6
    Member
    Join Date
    May 2003
    Posts
    41

    Default

    Can someone officially answer how this is supposed to look in our backup folder?

    Thanks
    -V

    Quote Originally Posted by chirpy
    I have "Per Accounts and Entire Mysql Dir;" enabled too. I understood this to create the per user .sql files witin the users account.tar.gz and the big one to simply be everything. Maybe mine is the on not working

    I'm not much a whizz with MySQL, so cannot answer the last question.

  7. #7
    cPanel Staff
    Join Date
    Mar 2004
    Posts
    698

    Default

    Quote Originally Posted by vissa
    Can someone officially answer how this is supposed to look in our backup folder?

    Thanks
    -V
    Its not a bug (referring to th "possible bug" in the subject)

    "Per Accounts and Entire Mysql Dir" means each user.tar.gz has their sql ("Per user") and then /backup/cpbackup/daily/dirs/_var_lib_mysql_.tar.gz is the "Entire Mysql Dir" which you would not really need/want to restore an individual account or two.

  8. #8
    Member
    Join Date
    May 2003
    Posts
    41

    Default

    So then my server must have a problem since it isn't compressing the individual accounts, correct?

    Thanks
    -V

  9. #9
    cPanel Staff
    Join Date
    Mar 2004
    Posts
    698

    Default

    no you're misunderstanding

    details in the ticket

  10. #10
    Member
    Join Date
    May 2003
    Posts
    41

    Default

    Cpanel support helped solve the problem (appreciated!). Although maybe you weren't misunderstanding, my problem wasn't being addressed (uncompressed sql backups).

    After sending Cpanel Support some directory listings, it turns out there were old uncompressed backed up folders mixed in with the newer compressed backups. I don't think Cpanel automatically deletes old uncompressed backups when you switch to compressed mode. So if a user switches modes, they should know that they manually have to delete the old backup files first. That explains the problem I was having.

    Thanks!
    -V



    Quote Originally Posted by cpdan
    no you're misunderstanding

    details in the ticket

  11. #11
    cPanel Staff
    Join Date
    Mar 2004
    Posts
    698

    Default

    Quote Originally Posted by vissa
    Cpanel support helped solve the problem (appreciated!).
    No problem

    Quote Originally Posted by vissa
    Although maybe you weren't misunderstanding, my problem wasn't being addressed (uncompressed sql backups).
    i understood perfectly, you did not get it until I spelled out what I'd been saying step by step:


    From Ticket:

    > I'm not sure you understand my problem. Is it normal for there to be 3 backups

    Yes I do understand

    What you are not comprehending is this:

    With "Per Accounts and Entire Mysql Dir":

    "Per Accounts" = the .sql files inside each `ls -al /backup/cpbackup/daily |grep tar.gz`

    "Entire Mysql Dir" = /backup/cpbackup/daily/dirs/_var_lib_mysql_.tar.gz

    IE two compeltely seperate backups for the same data basically.

    The problem is this:

    > drwxr-x--x 45 root root 4096 Feb 4 22:21 _var_lib_mysql_/
    > -rw------- 1 root root 350026637 May 17 02:25 _var_lib_mysql_.tar.gz

    The directory shouldn't be there.

    You'll notice the directory is 3 and a half months old, so its a left over from another time. Feel free to delete it and I imagine it will never show up again.

    If it does show up again then backup is unable to remove it for some reason (is it immutable? Is rm broken or not recognize its flags? etc etc)
    Quote Originally Posted by vissa
    So if a user switches modes, they should know that they manually have to delete the old backup files first.
    No they don't, if that was the case you'd have one directory for each compressed version. Probably it was left over or restored somehow. (the process deleting them was interupted for example)

Similar Threads & Tags
Similar threads

  1. UI bug found when compressing files in filemanager
    By nak5ive in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-14-2011, 11:33 AM
  2. UI bug found when compressing files in filemanager
    By nak5ive in forum Feature Requests for cPanel/WHM
    Replies: 2
    Last Post: 04-14-2011, 11:33 AM
  3. Can not find users home dirs/sql in WHM Backup
    By vizzit in forum Data Protection
    Replies: 3
    Last Post: 04-29-2010, 12:09 AM
  4. MySQL limitation in WHM/cPanel - a bug?
    By Milka in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 03-05-2004, 05:47 AM
  5. Replies: 5
    Last Post: 02-13-2004, 04:53 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube