Production Server Swapped in About 6 Minutes Using Scripted rsync Syncs
A developer moved a production e-commerce site from an Amazon Linux 2 server running PHP 8.2 to a new Amazon Linux 2023 instance on PHP 8.3 with php-fpm. The shared managed database meant only code, uploads, sessions, and admin-edited templates needed transferring. Data was synced in advance with rsync, using sudo on the sending side to read restricted session files, and a final sync ran during a maintenance window. Moving sessions let logged-in customers stay signed in through the cutover, and the maintenance page was up for roughly six minutes. The DNS change was kept as a manual step, with the old server left running as a rollback option.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in