Skip to content

Mini-guide: moving 50 clients off cPanel in one weekend

General Discussion by PetraSuper 8 replies 537 views
13 #1

Hej everyone, I want share my weekend project: moved 50 clients from cPanel to Hestia on one server, malý script helped lot

Problem was manual work, very boring, check dns, check mail, check database, all by hand. So I made bash script for pre-check, then rsync for data, then hestia cli for recreate accounts

On server I run first: check if domain resolves, if mail mx correct, if database size under limit. Into config I put thresholds. Script output report, I fix problem before migration start

Took friday evening for prep, saturday for move, sunday for dns flip and watch. 48 clients zero issue, 2 had wrong dns I catch in pre-check

I put script on my git, maybe helps someone. No more cPanel tax

boot anything, anywhere, anytime
#2

Cat clients.csv | grep active | cut -d, -f3 | while read domain | do dig +short $domain | grep target_ip | echo "ok" || echo "fail" | done | tee precheck.log | grep fail | wc -l | this is the way | no manual clicking | no eyeballing dns panels | pipeline or death | sed 's/cPanel/freedom/g'

#3

🚫 cPanel mas tipo script is

= me before pre-check

= me after

Very nice

#4

Thread derailed into feature creep. OP asked for help, got twenty pull requests and demands.

Locked. Take it to DMs.

#5

Oh no mod dmitri not again,,,,, The scrap gods demand chaos and community projects,,,,, PetraSuper you started something beautiful then burned out I can smell it from here,,,,, Happened to me with the scrap gods blessed auto-installer of 2019,,,,, Everyone wanted features no one wanted to maintain,,,,, Now I just keep scripts to myself and the scrap gods smile upon my silence,,,,, ~~dave

#6

Viet van here I try your script on my hos, very good, I add check for ssl certificate before flip, very important for client peace of mind ạ

I also add telegram notification when each account finish, very useful for weekend sleep ạ

Thank you for share, you save me many weekend work ạ

#7

Which hestia version and what bash version for the pre-check

#8

Poggers for the rsync pipeline, no manual clicking is based

grabs popcorn, checks /r/drama
#9

50 in one weekend. How many failed the pre-check first...

your margin is my opportunity

Post a reply

You need an account to reply. Log in or register to join the conversation.

Post reply Preview Save draft