Join our Agency Partners program! Package up your services and resell hosting with Flywheel

Join Now!

Help articles Local by Flywheel

How does the Magic Sync Viewer work in Local Pro and Local for Teams?

Local Pro and Local for Teams make use of our one-of-a-kind Magic Sync deployment technology. It’s pretty slick, but since it can seem like magic (hence the name), we have a quick summary of how it works below!

How does Magic Sync push and pull files?

When using Magic Sync to push or pull a site, Local will start by asking the server for a list of all the files located within the site folder. This file list is also sometimes called an “index.”

The server’s file list is then compared with the file list that Local has for the local site. 

Local uses the differences in the two file lists to create instructions for what files need to be deleted, added, or updated to make the two environments be in sync.

Note

Local only compares modification times of files within the file list and not the actual contents of those files. If you find yourself needing to manage and merge changes more granularly than at the file level, you might consider using a dedicated version control tool like Git.

What does the “all modified files” option do?

The “all modified files” option can be thought of as a “force overwrite” of the target site by the source site. This is regardless of the modification times that Local finds when comparing the file list of the server and the local site.

So for example, if I’m pushing a local site up to Flywheel’s servers, Local will compare the two file lists, one for the local site and one for the server. It will then generate instructions to:

  • Add any files that are missing on the server
  • Delete all files that do not exist on the local site
  • Overwrite any remote files, regardless of what the modification time is.

Notice in this screenshot, the robots.txt file is older on the Local site, but because the “All modified files” option is selected, it is still going to overwrite the remote site.

A screenshot of Local's Magic Sync Viewer with the "All Modified Files" option selected.

If we compare the above image with the “only newer files” option, we see that the files that are older on the Local site, do not show up as available to be pushed:

A Screenshot of the Magic Sync viewer with the "Only newer files" option selected.

Was this article helpful?

  • Billing & Accounts

    Questions relating to payments, billing and managing your account on Flywheel.

    15 Articles
  • Blueprints

    Learn everything there is to know about what Blueprints are, how to create them and how to make the best use of them.

    5 Articles
  • Database

    How to access your WordPress database to make changes and update content.

    3 Articles
  • Domain Names

    Details about how to manage DNS and point your domain names at Flywheel.

    14 Articles
  • Frequently Asked

    The most commonly asked questions, and a few we just think you should know.

    27 Articles
  • General Questions

    Questions that don't fit elsewhere, or those about Flywheel in general.

    56 Articles
  • Getting started

    Everything you need to know to get your first Flywheel site up and running.

    17 Articles
  • Local by Flywheel

    Everything you need to know about our amazing, free local WordPress development software for Mac and PC.

    20 Articles
  • Organizations

    Everything you need to know about managing your team with our Organizations feature.

    8 Articles
  • Plugins

    Which plugins work best, which plugins work worst, and everything in between.

    7 Articles
  • Security

    Details about everything Flywheel does to makes your site so secure.

    15 Articles
  • SFTP

    Information on setting up and troubleshooting with SFTP connections and file transfers.

    5 Articles
  • Simple SSL

    All there is to know about our free, automatically installed and activated SSL certificates.

    8 Articles
  • Staging

    How to get the most out of Staging, which allows you to duplicate a site, make changes, and then push those changes to the live site.

    6 Articles
  • White Label

    Everything you need to know about our Whitelabel subscriptions for branding and reselling Flywheel.

    4 Articles

Flywheel help

Help is just a click away! Log into the Flywheel dashboard to instantly chat with an expert, open a ticket, or follow along with in-depth documentation. We happily offer support 24 hours a day, 7 days a week, 365 days a year!

Log in

Try it yourself. It's free & takes less than 60 seconds. Sign up