Announcement

Collapse
No announcement yet.

Backup/Restore LVE and PHP_Selector settings

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Backup/Restore LVE and PHP_Selector settings

    Is there a way to backup and restore settings so that everything is easily copied over after a drive swap? Were jumping to SSD and apparently cloning wont work cause of a smaller SSD drive. Ive fine tuned all of the LVE and PHP_Selector settings and really would like to just restore them instead of doing it all over again. Is there a centralized place where they can be tarballed and restored to?

    Wil

  • #2
    Hi,

    Sure there is a way to move all to new server, just in different places:
    1. For LVE limits and packages - move just /etc/container/ve.cfg file to new server, then do lvectl apply all

    2. If any customizations were done to CageFS - move /etc/cagefs/cagefs.mp to a new server and cagefsctl --remount-all

    3. For PHP-Selector - move /etc/cl.selector/ and run cagefsctl --setup-cl-selector

    4. To restore users settings from PHP-Selector follow http://kb.cloudlinux.com/2015/11/how...re-or-migrate/ . Actually, as you are moving all accounts then schema is:
    - restore user homes
    - remove all

    Code:
    rm -rf /var/cagefs/*/*/etc/cl.selector
    
    rm -rf /var/cagefs/*/*/etc/cl.php.d
    - regenerate them with

    Code:
    cagefsctl --force-update-etc

    Comment


    • #3
      Excellent! Wish cPanel had thought to make it so easy moving their settings. :-)

      Thanks for the assist

      Comment


      • #4
        How about any customization we have made to the php installs and selected libraries defaults per versions? Arent they all in /etc/opt/ or someplace like that? Dont exactly recall the path without some serious hunting. Can all those be simply copied back over?

        Comment


        • #5
          All defaults are stored in /etc/cl.selector/defaults.cfg and they will be applied to new server after move and running cagefsctl --setup-cl-selector .

          If you have done any customizations to php.ini then yes you need to move them over, like files for each version:
          /opt/cpanel/ea-phpXY/root/etc/php.d/local.ini

          Comment


          • #6
            Hello,

            Im planning to add the file "/etc/container/ve.cfg" and folder "/etc/cl.selector/" to the cpanel system backups just like its mentioned by the user in this thread: https://www.cloudlinux.com/forum/for...-and-restoring
            Is it possible to setup the backup schedule? Thanks.

            Comment


            • #7
              Hello,
              To add additional destinations to cPanels System Backups use the following documentation: https://[https://documentation.cpane...System+Backups

              If you need to configure scheduling, read everything about Scheduling and Retention that can be found in this guide: https://documentation.cpanel.net/dis...+Configuration](https://documentation.cpanel.net/display/74Docs/System+Backups)

              Comment


              • #8
                Interesting...

                Comment


                • #9
                  > Interesting...

                  Hello Clayton,
                  Could you provide a little more information? And we will answer you as quickly as possible.
                  Thanks.

                  Comment

                  Working...
                  X