upgrading bitrix using files & database migration
postinstall:
- random root password
- hostname & pubkeys comment
- set-timezone
- yum upgrade
- users+sshd role
./bitrix-env-9.sh
assuming you installed centos9 and bitrix on the new server already
- stop production [bitrix admin]
- proceed with a backup [bitrix admin]
- restore backup on new server [bitrix admin] - incl files & database (latter takes a while)
- sync user uploads folder [sysadmin]
- nginx ssl setup [sysadmin]
- update DNS and/or load-balancers PAT rules [netadmin]
- test services on the new server incl push notifications and email [bitrix admin]
- enable production on the new server (and stop the old server) [sysadmin]
lvm2
on the new server
prepare mount points for
direct network link and static name resolution
on the new server, enable faster backup restore by pointing to the old server directly
vi /etc/hosts
x.x.x.x bitrix-fqdn
user uploads folder sync
on the new server
rsync -a old-server:/home/bitrix/www/upload/ /home/bitrix/www/upload/
fix mlocate
vi /etc/updatedb.conf
PRUNEPATHS ++ /home/bitrix/www/bitrix /home/bitrix/www/upload
see /system/ansible/playbooks/bitrix/