Shopify · May 13, 2023
How to Duplicate & Back Up a Shopify Theme
Backing up a Shopify theme means duplicating it in your admin before making changes, and optionally exporting a local copy for extra safety. Here is the full, no-surprises workflow, plus how to keep backups sane once you are running a real store.
By Polo Themes
The fastest way to back up a Shopify theme is to duplicate it from Online Store > Themes before you touch anything — this gives you an unpublished, exact copy you can revert to in one click. For deeper protection, you can also download the theme code as a local ZIP or push it to a private Git repository using Shopify CLI. Do this before every theme update, every new theme install, and every round of heavy customization.
None of this is complicated, but it is easy to skip when you are in a hurry to ship a change, and skipping it is exactly how merchants end up rebuilding a homepage from memory at 11pm. This guide walks through the admin-only duplicate method that covers most day-to-day needs, the local/Git backup that covers the rest, and a few habits worth adopting once your store depends on the theme actually working.
Why Theme Backups Matter More Than People Expect
A Shopify theme is not just a visual skin — it holds your section settings, custom code snippets, metafield-driven layouts, and every small tweak you or a developer made over months of running the store. Shopify does not keep an automatic version history of your live theme the way a document editor keeps undo history. If you edit theme code directly, save over a section, or run an update that changes behavior you did not expect, the previous state is gone unless you saved it yourself.
This matters most at exactly the moments merchants are least likely to think about it: right before a sale-day promotion edit, right before installing a new app that injects its own theme code, and right before switching from one theme to another entirely. Building the backup step into your normal workflow means a bad edit costs you a few clicks to revert, instead of costing you an afternoon rebuilding sections from screenshots.
Method 1: Duplicate the Theme in Shopify Admin (Do This Every Time)
This is the backup method every merchant should use as a baseline, because it takes under a minute and needs no technical setup at all.
- Go to Online Store > Themes in your Shopify admin.
- Find the theme you are about to edit — usually the one marked Published — in the theme library section below it.
- Click the Actions menu (the "..." next to the theme) and choose Duplicate.
- Shopify creates an exact, unpublished copy in your theme library, usually named something like "Copy of [Theme Name]".
- Rename the duplicate to something dated and clear, such as "Backup - before July sale edit", so it is obvious later which version it is.
That duplicate is now your safety net. If a change to the live theme goes wrong, you can duplicate the backup again to restore its exact state into a working copy, then publish it. Shopify has no limit on how many themes you can store in your library beyond your plan's theme allowance, so keeping a few recent backups around costs nothing but a little bit of clutter — which is a good trade for peace of mind.
When to duplicate before editing
Duplicate before: installing or updating a theme, adding a new app that touches theme code, making bulk section or color changes ahead of a campaign, or handing edit access to a new team member or contractor. If you are unsure whether a change counts as "big enough" to back up first, the honest answer is that a thirty-second duplicate is cheaper than finding out the hard way.
Method 2: Export a Local Copy of the Theme Files
Admin duplicates protect you against most day-to-day mistakes, but they still live inside your Shopify store. For an extra layer of protection — or if you want a copy outside Shopify entirely, for a developer to work from offline, or to keep as an archive when retiring an old theme — you can export the theme's actual code.
- From admin (no coding required): on the theme's Actions menu, choose Download theme file. This saves a ZIP of the theme's Liquid, JSON templates, CSS, and assets to your computer.
- Using Shopify CLI (for developers): run `shopify theme pull` from a connected project directory to download the current theme's files locally, which you can then commit to Git for full version history.
- Storing in Git: if you or a developer maintain the theme's source in a repository, commit before and after significant changes. This gives you diffs, commit messages, and the ability to roll back to any prior state, not just the last one you happened to duplicate.
Git-based backups are the right call once a theme is customized enough that a developer is regularly touching Liquid files directly, since admin duplicates alone do not give you a change history or the ability to see exactly what changed between two versions.
Restoring From a Backup
If you kept an admin duplicate: open the backup theme from your theme library, click Actions > Publish to make it live again, or duplicate it once more if you want to keep editing a fresh copy while preserving the backup itself untouched.
If you kept a downloaded ZIP or Git repository: you will need to create a new theme in your Shopify admin and upload or push those files back in, typically via Shopify CLI (`shopify theme push`) or the Add theme > Upload ZIP file option in admin. This restores the code, though any settings stored purely in the theme editor's JSON config will come back as part of that same file set, since modern Shopify themes store section and setting data in JSON templates alongside the Liquid code.
Backup Habits Worth Building Into Your Routine
A single backup before a risky edit is good practice. A habit is better, and it does not need to be complicated.
- Duplicate before any update to your current theme, since theme updates can change section behavior or remove settings you were relying on.
- Name backups with the date and reason, not just "Copy of Theme 2" — future you will thank present you.
- Periodically clean out old, unneeded backup themes so your theme library stays easy to navigate, but keep at least the most recent one or two.
- If a developer maintains custom code, agree on a Git workflow up front rather than relying on admin duplicates alone for anything beyond quick day-to-day safety.
- Treat switching themes entirely — not just updating one — as a bigger event that deserves both an admin duplicate of the old theme and a downloaded copy kept somewhere safe.
Choosing a Theme You Will Not Need to Fight With
Backups protect you from mistakes, but the best defense against needing frequent, high-stakes edits in the first place is starting from a theme with a clean, section-based structure that does not require deep Liquid changes for common merchandising tasks. Our Shopify themes are built around Shopify's native section and block system, so most day-to-day changes — swapping images, rearranging homepage sections, adjusting colors — happen safely in the theme editor rather than in raw code, which naturally reduces how often you need to touch anything risky enough to require a restore.
If you are evaluating a new theme for a specific niche, it is worth choosing one built for that catalog from the start. For example, our Electronix theme is structured around spec-heavy product pages and comparison-friendly layouts for electronics stores, while our Groxery theme is built around grocery and fast-turnover catalog browsing. Starting from a theme that already fits your category means fewer custom code changes down the line, and fewer moments where a backup is the only thing standing between you and a broken storefront.
Frequently Asked Questions
Does Shopify automatically back up my theme?
No. Shopify does not keep an automatic version history of your live theme's edits. It is on you to duplicate the theme or export its files before making changes you might want to undo.
Will duplicating a theme affect my live store?
No. Duplicating creates an unpublished copy sitting in your theme library. Your live, published theme keeps running exactly as it was until you choose to publish something else.
How many backup themes can I keep?
Shopify allows a set number of themes in your library depending on your plan, typically enough to hold several backups alongside your live theme. Check your plan's current theme limit in admin, and clean out old backups you no longer need to stay under it.
Do I still need a backup if I am only using the theme editor, not writing code?
Yes. Section and content changes made purely in the theme editor can still be lost or hard to reverse — deleting a section, overwriting content, or a theme update changing default settings can all cost you work. A quick duplicate before a big editing session is cheap insurance either way.
What is the difference between duplicating a theme and downloading it?
Duplicating creates a full copy inside your Shopify admin that you can publish or edit with one click — best for quick, everyday safety. Downloading (or using Shopify CLI to pull the code) gives you the raw theme files outside Shopify, which is better for developer workflows, Git version history, or keeping an archive independent of your store.
Browse Shopify themes built to reduce risky edits
If frequent code-level changes are the real problem, switching to a more flexible, section-based theme can help. See our full Shopify theme catalog to compare options across niches.