Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16
  1. #1
    Member
    Join Date
    Feb 2004
    Posts
    17

    Default Backup bug - very simple to fix, bu not touched almoust a year.

    Cpanel is restoring accounts in this manner:


    Restoring Mail files
    Done

    ...


    Restoring subdomains

    ..Done


    Restoring parked domains

    ..Done


    Restoring addon domains

    ..Done




    So as You can see, first mail aliases are copied, then subdomains are restored.
    But then Addon Domains are restortd and all aliases and subdomains previously restored are overwritten. So basicly You cant easy restore backup, because You must manualy add subdomains once more, and then copy valiases files from backup manualy too. It so simple, why they won't fix it - just change order of restoring. I would do some fix myself, but restoring is hidden in binary file /usr/local/cpanel/whostmgr/bin/whostmgr2.

  2. #2
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    What version (build number) are you using?

  3. #3
    Member
    Join Date
    Feb 2004
    Posts
    17

    Default

    stables mostly, but about 6 month ago I've tested this on edge, current, release and stable. Same on every version. Easy to test - create account, add fe. 2 addon domains, add subdomains to those and mail aliases. Then backup this account, delete and restore from backup. Subdomains will be missing, mailailiases too.

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    17

    Default

    BTW. I have 1200 accounts to move across the servers. Logging to eachone and manualy adding missing subdomains is a little problem. I would be nice, if cPanel could just change the order in restore script, and spare me 72hrs of clicking. I can do myself, but this in binary file...

  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

    Ben is asking you what version of cPanel you are using, not which build tree which is not relevant. Probably your OS would help if it's not an RH derivative.

    I've done many restores on the latest versions and never had a problem with restoring addon, parked subdomains or mail aliases.
    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
    Feb 2004
    Posts
    17

    Default

    Currently we have about 40 cpanel servers. Mostly:
    WHM 10.8.0 cPanel 10.8.1-S31
    CentOS 4.2 i686 - WHM X v3.1.0
    Since 2 years I have never seen succesfull restore with subdomain-of-an-addon-domain and mailailases of addon's. We have moved thousends of accounts, and only if subdomain have fe. redirects it will be recreated. It's ultra easy to reproduce.
    1. create account for test (fe. login dtst, domain dtst.com ).
    2. add addon domain (fe. dom.com)
    3. add subs to it ( fe. s1.dom.com, s2.dom.com )
    4. add some mail aliases ( m1@dom.com -> somwhere )
    5. do a backup of this account.
    6. delete
    7. restore from backup.

    As restore script is used in accs. transfer also - any migration has same problem. I've post it into buglist about year ago, confirmed by Dan from cPanel - problem exist. I supose it's just wrong order of restoring but I don't know internals of cPanel, so it's just a guess.

  7. #7
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    The main reason I asked is because this was changed many months ago. The current order is as follows:

    Restoring cpanel user config file
    Restoring reseller privs (if any)
    Restoring SSL keys and Certificates
    Restoring frontpage (if installed)
    Restoring MySQL privs
    Reloading MySQL
    Restoring PostgreSQL privs
    Restoring Mailman lists
    Restoring Mailman Archives
    Restoring quota
    Restoring shell
    Restoring password
    Restoring proftpd file
    Resyncing Ftp Passwords
    Restoring subdomains
    Restoring parked domains
    Restoring addon domains
    Doing fileprotect conversion
    Restoring nobody owned files
    Setting interchange permissions
    Restoring Mail files
    Converting email to cPanel 5+ (if needed)
    Reconfiguring email Passwords (if needed)
    Fixing mail permissions
    Fixing mail autoresponders
    Restoring crontab
    Converting to maildir if needed
    Restore Complete

    As you can see, restoring mail occurs long after the domains are restored.

  8. #8
    Member
    Join Date
    Feb 2004
    Posts
    17

    Default

    But addon-doms still after subdomains. I will test if mailaliases of addons are restored correctly on stable version today. Subdomains are more important, as in mass migration I'm just copying manualy all /etc/valiases by hand. But each subdomain must be 'clicked'.
    Last edited by ankesen; 12-08-2005 at 10:35 AM.

  9. #9
    Member
    Join Date
    Feb 2004
    Posts
    17

    Default

    Just made an test on latest stable (10.8.1-STABLE_31)
    1. create new account
    2. add addon-domain
    3. add mail-aliases to addon
    4. subdomain to addon
    5. transfer onto other server.
    Subdomain is missing.
    Aliases are missing.

    Just take a 5 mins breake and do this test. I currently all my cPanels are stable versions, but I supose it's on others too.

  10. #10
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Just tested this myself after having another person test it earlier today, and it works for me too. Your instructions are pretty simple. Have you left out any other conditions? Please submit a support ticket so that we can look into your specific server.

  11. #11
    Member
    Join Date
    Feb 2004
    Posts
    17

    Default

    I've posted this:
    http://bugzilla.cpanel.net/show_bug.cgi?id=1240
    over a year ago. Only soultion You've found is to manualy add missing subdomains. Sadly I don't have direct access to submiting tickets. I can mail You my server details. We have very standard configurations, plus fantastico&rvskin.

  12. #12
    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

    If a cPanel employee says that you can log a ticket, then you can go ahead and do so on their site whether your license is direct or not.
    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

  13. #13
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Thanks for your persistence ankesen. This issue is resolved in Edge builds.

  14. #14
    Member
    Join Date
    Feb 2003
    Posts
    176

    Default

    Quote Originally Posted by cpanelben
    Thanks for your persistence ankesen. This issue is resolved in Edge builds.
    That was an efficient exchange When you say resolved in Edge, when would that make it to Release?

    David

  15. #15
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    No earlier than late next week.

Similar Threads & Tags
Similar threads

  1. Statistics Problem (Doesnt look too bad, simple fix?)
    By colinstillwell in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 08-13-2006, 09:15 PM
  2. help i how fix this bug
    By hostsky in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-04-2006, 03:33 PM
  3. Please fix this bug
    By hostultra in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-04-2004, 08:11 PM
  4. Another year old bug!
    By MattF in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-16-2003, 07:37 AM
  5. How can I fix this bug ?
    By dorijan in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-30-2003, 02:34 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube