Backup/Restore LVE and PHP_Selector settings
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Wil Hatfield
  2. Tuesday, 08 August 2017
  3.  Subscribe via email
Is there a way to backup and restore settings so that everything is easily copied over after a drive swap? We're jumping to SSD and apparently cloning won't work cause of a smaller SSD drive. I've 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
Rate this post:
  1. 09.08.2017 06:08:39
  2. # 1
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
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 user's settings from PHP-Selector follow http://kb.cloudlinux.com/2015/11/how-to-restore-php-selector-options-after-restore-or-migrate/ . Actually, as you are moving all accounts then schema is:
- restore user homes
- remove all

rm -rf /var/cagefs/*/*/etc/cl.selector
rm -rf /var/cagefs/*/*/etc/cl.php.d


- regenerate them with

cagefsctl --force-update-etc
  1. 09.08.2017 14:08:02
  2. # 2
Wil Hatfield Accepted Answer
Posts: 2
Joined: 08.08.2017
0
Votes
Undo
Excellent! Wish cPanel had thought to make it so easy moving their settings. :-)

Thanks for the assist
  1. 09.08.2017 19:08:41
  2. # 3
Wil Hatfield Accepted Answer
Posts: 2
Joined: 08.08.2017
0
Votes
Undo
How about any customization we have made to the php installs and selected libraries defaults per versions? Aren't they all in /etc/opt/ or someplace like that? Don't exactly recall the path without some serious hunting. Can all those be simply copied back over?
  1. 10.08.2017 11:08:48
  2. # 4
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
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
  1. 23.07.2019 06:07:46
  2. # 5
Stefan Albrecht Accepted Answer
Posts: 1
Joined: 23.07.2019
0
Votes
Undo
Hello,

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

https://kb.cloudlinux.com2015/11/how_to_restore_php_selector_options_to_write my homework_after_restore_or_migrate/
  1. 23.07.2019 08:07:09
  2. # 6
Kate Grechishkina Accepted Answer
Posts: 20
Joined: 13.04.2019
0
Votes
Undo
Hello,
To add additional destinations to cPanel's System Backups use the following documentation: https://documentation.cpanel.net/display/74Docs/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/display/74Docs/Backup+Configuration
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.