I deploy to shared hosting with SFTP, no CI, no staging server, no fancy pipeline. For a long time my rollback plan was a vague hope: if a deploy broke something, I would just upload the old files again. Then one afternoon a small change to my download proxy broke every video download on the site, and I discovered the problem with that plan. I did not have the old files to hand. They were on my laptop, somewhere, in a folder with a name I no longer trusted.
That is the day I started keeping a rollback zip.
The idea is embarrassingly simple. Before every upload, I zip the entire live site as it currently stands and save it with a date in the name: site-2026-12-06.zip. Only then do I upload the new files. The zip is the last known working version, and restoring it is one extract, not a reconstruction from memory.
I keep the zip in two places: one copy in my project folder, one copy on the hosting file manager itself, in a folder outside the public web root. The second copy matters, because the most likely moment I need a rollback is exactly the moment my laptop is not beside me. From the file manager I can extract it over the broken files in a couple of minutes, straight from the browser on my phone if I have to.
A few rules keep this honest. First, the zip is a snapshot of the live site, not of my local folder. My local folder sometimes holds half-finished edits, so zipping it would roll the site back to something I never actually tested. I download the live copy first, or I zip the folder I uploaded from last time — the one that is currently running. Second, the zip includes the api/ folder and the config, because a broken deploy is usually a code change, and rolling back the pages without rolling back the code fixes nothing. Third, I keep three zips and delete the oldest. Shared hosting disk space is not free, and a zip from six months ago is not a rollback plan, it is archaeology.
There is one thing the zip does not cover, and I say so plainly: the database. My site keeps nothing in a database — everything is flat files — so a zip is a complete rollback for me. If your site has a database, a file zip alone will not save you; you need a database export with the same date in its name, taken at the same moment, or your rollback will restore old code against new data.
What does a rollback actually look like in practice? Last month I shipped a change to the resolve endpoint that worked perfectly on my machine and broke on the live server — a path that was fine locally and wrong on the host. Visitors started seeing errors. I did not debug it live. I extracted the previous zip, confirmed the site worked again, and only then sat down to find the bug properly. Total downtime was a few minutes, and nobody had to watch me experiment on a live site.
That is the real lesson. A rollback zip is not about being careless; it is what lets you be careful. When undoing a bad deploy costs two minutes instead of an afternoon, you stop being afraid to ship, and you stop debugging in production because there is no pressure to fix it while visitors are staring at an error page.
People ask whether I should just use a proper deployment pipeline instead. Maybe one day. But shared hosting is what I have, and a dated zip is a rollback strategy that actually exists, rather than a perfect one I never set up. The best backup is the one you will really make before every single deploy.
I build and run ramrom.io, a small free video downloader on plain PHP and shared hosting. Every deploy there still starts the same way: zip first, upload second.

