# How to back up a Shopify theme

Source: https://storesetupmanual.com/blog/2026-12-04-how-to-backup-shopify-theme.html

Reviewed December 4, 2026


There are three real ways to back up a Shopify theme, and they protect against different disasters. Duplicating the theme inside the admin protects you from your own edits. Downloading the theme file protects you from losing the store. Connecting the theme to GitHub protects you from the slow drift of a hundred small changes nobody logged. Most stores need the first every time and the second every month.

First, the boundary nobody reads until it hurts: a theme backup saves the theme. Shopify's Help Center says it directly: theme downloads do not include your products, collections, menus, pages, blog posts, or the files in Content, then Files. A theme backup is the look of the store, not the store.

## Method one: duplicate, every time, before you touch code

In Online Store, then Themes, open the actions menu on the theme and choose Duplicate. Shopify adds a copy named "Copy Of" plus the theme name to your theme library. Rename it with the date and the reason before you forget both: "Backup 2026-12-04 before header edit" is a name your future self can use at 1 a.m.; "Copy Of Copy Of Dawn" is not.

The limit that bites is the theme library cap of 20 themes. Stores that duplicate before every edit, which is the right habit, fill the library within a season and then start deleting old copies to make room, which quietly deletes the backup history the habit was building. That is the signal to graduate to method three.

## Method two: download the theme file, and mind whose inbox it lands in

The same actions menu has Download theme file. Shopify emails a ZIP of the theme to the signed-in user's email address. Save it somewhere that is not that inbox: a dated folder in cloud storage, at minimum. An emailed link in a departed employee's mailbox is not a backup, it is an archaeology project.

A download is a snapshot with no history. It answers "what did the theme look like on this date" and nothing else. Restoring means uploading the ZIP as a new theme and republishing, which also means any settings changed since the snapshot are gone. That is acceptable for a disaster copy. It is a bad tool for undoing last Tuesday's edit.

## Method three: GitHub, for stores that edit themes weekly

Shopify's GitHub integration connects a theme to a branch in a repository, and sync runs both ways: commits update the theme, and edits made in the admin or theme editor are committed back to the branch. Every change gets a commit with a time and an author, so a bad change is reverted by restoring that state instead of resetting the whole theme to an old copy.

Two ownership rules matter more than the mechanics. The repository belongs in your GitHub organization, not your agency's, because whoever holds the repo holds the history when the relationship ends. And customizations made through sections, blocks, and separate files survive theme updates; edits hacked into core files are the ones updates remove, which Shopify's own documentation warns about.

## The small print: file history and what a backup never covers

The code editor keeps older versions of individual files, which is the fastest fix for one broken file and useless for a settings-wide mess. Rollback in Shopify is layered like that: file history for a file, a duplicate for a theme, a download for the store's appearance, and nothing native at all for products and content. Those need CSV exports or a backup app, which is a separate job with a separate schedule.

This site covers the neighbouring habits in [the duplicate-before-editing habit](2026-11-20-duplicate-theme-before-editing-code-backup-habit.md), [backing up the store beyond the theme](2026-11-17-backup-shopify-store-theme-csv-exports.md), and [theme performance budgets](2026-12-01-theme-performance-budgets-a-step-by-step-that-follows-how-practitioners-actually-do-it.md).

## Frequently asked questions

### Does Shopify back up my theme automatically?

Only partially. Shopify keeps the theme library and per-file version history in the code editor, but there is no automatic off-platform copy. If you lose access to the store, the in-admin copies are gone with it, which is what the download is for.

### What is not included in a theme download?

Products, collections, menus, pages, blog posts, images, and the files under Content, then Files. A theme download is the theme's code, templates, and settings only. Store content needs its own export or backup app.

### How many themes can I keep as backups?

The theme library holds up to 20 themes. When it is full you must delete a theme before duplicating another, and deleting is permanent. Stores that hit the cap regularly should move versioning to GitHub.

### Should the duplicate or the download come first?

Duplicate first, because it takes ten seconds and sits ready to publish. Download second, on a monthly rhythm, because it is the only copy that survives losing the store. They solve different problems and neither replaces the other.
