Skip to content
Start a project

3 Ways to Back Up Your Shopify Theme

Three ways to back up a Shopify theme: duplicating it in the admin, a backup app like ThemeWatch or Rewind, and Shopify's GitHub integration, with pros…

3 Ways to Back Up Your Shopify Theme

Shopify does not keep backups of your theme for you. The code editor remembers older versions of each file, but there is no way to roll the whole theme back to how it looked last week. An edit in the code editor, an app that rewrites a snippet or a theme update can all change a live store. Here are three ways to keep a copy you can go back to, from the simplest to the most thorough.

1. Duplicate the theme in the admin

The quickest copy is the one Shopify has built in.

  1. In your Shopify admin, go to Online Store > Themes.
  2. Find the theme you want to keep a copy of and open its actions menu (the ⋯ button).
  3. Choose Duplicate. The copy appears in your theme library.

Pros

  • Free and built in. No app, no account, no setup.
  • Quick. A few clicks before any risky change.

Cons

  • Manual. The copy is only as recent as the last time someone remembered to make one.
  • Limited room. The theme library holds up to 20 themes, so old copies have to be cleared out.
  • No comparison. You cannot see what changed between two copies.

It suits small stores with few theme changes, and it is a good habit before any edit, whatever else you use.

2. Use a backup app

Apps from the Shopify App Store can take the copies for you on a schedule.

ThemeWatch

ThemeWatch backs up your theme automatically every day and lets you make a manual backup before an edit. It tracks changes to theme files, and you can restore a single file or the whole theme.

  • Pro: automatic, with a record of what changed.
  • Con: it covers the theme only, not products, collections or orders.

Rewind Backups

Rewind backs up store data beyond the theme, such as products and collections, and can restore a single item or a larger set after a mistake or an app error.

  • Pro: one app protects much more than the theme.
  • Con: a paid monthly subscription.

An app suits stores that change often, or that want the whole store covered, not only the theme.

3. Connect the theme to GitHub

Shopify’s GitHub integration links a theme in your theme library to a branch in a GitHub repository, and keeps the two in step both ways: a commit to the branch updates the theme, and an edit made in the Shopify admin is committed back to the branch. Every change becomes a commit, so you can see exactly what changed, when, and go back to any earlier version.

  1. Install Shopify’s GitHub app and give it access to your repository.
  2. In your Shopify admin, go to Online Store > Themes and choose Add theme > Connect from GitHub.
  3. Pick the account, the repository and the branch. The branch needs Shopify’s standard theme folder structure.
  4. To track your live theme, publish a theme that is connected to a branch.

Pros

  • Full history. Every change is recorded and can be compared or reverted.
  • Works with how developers already work. Branches, reviews and previews before anything goes live.

Cons

  • Setup. It needs a GitHub account and some comfort with Git.
  • One-way disconnect. A branch disconnected from a theme cannot be reconnected to it; connecting it again adds a new theme.

It suits stores that work with a developer, or that change the theme code regularly.

Which one to choose

  • Few changes, no developer: duplicate the theme before every edit.
  • You want it automatic: a backup app, and Rewind if the store data matters as much as the theme.
  • A developer works on your theme: GitHub, plus a duplicate before big releases.

Whichever you choose, make the copy before the change, not after something breaks.

Need this done?

Soifon can build it, and keep it safe to change.

Shopify themes, web products and the systems behind them, scoped in writing and previewed before anything goes live.

What are you building next?

Send a few lines about the store or product. You get a reply within one working day, from the person who would lead it.