Tag: migration

Cloud Linux, Control Panel

Some useful commands for Account migrations in Cpanel server

Pre migration steps (DNS) rsync -avHl /var/named/ /home/named.backup/ sed -i -e “s/14400/600/” /var/named/*.db newserial=$(date +%Y%m%d%H) sed -i -e “s/[0-9]\{10\}/$newserial/” /var/named/*.db rndc reload For customers with a large number of domains you can use the find command. cd /var/named find . -name “*.db” -exec sed -i -e “s/TTL\ 14400/TTL\ 600/” {} \; newserial=$(date +%Y%m%d%H) find . …