{"id":111,"date":"2020-02-26T21:00:00","date_gmt":"2020-02-26T21:00:00","guid":{"rendered":"http:\/\/localbyflywheel.com\/?post_type=help&#038;p=111"},"modified":"2023-06-15T20:46:32","modified_gmt":"2023-06-15T20:46:32","slug":"magic-sync","status":"publish","type":"help","link":"https:\/\/localwp.com\/help-docs\/local-features\/magic-sync\/","title":{"rendered":"MagicSync"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">MagicSync makes Connect more valuable by giving you a view into what files have changed between environments. MagicSync makes it easier to push or pull only the files that have had changes to them, speeding up the process.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group help-doc-toc\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\">Table of Contents:<\/p>\n\n\n<nav aria-label=\"Table of Contents\" class=\"wp-block-table-of-contents\"><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"#magicsync-benefits\">MagicSync Benefits<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"#using-magicsync\">Using MagicSync<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"#all-modified-files\">All modified files option<\/a><\/li><\/ol><\/nav><\/div><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" id=\"magicsync-benefits\" style=\"color:#000000\"><strong>MagicSync Benefits<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The core benefit of using MagicSync is that only files that have changed will be displayed when deploying updates or pulling down changes. The MagicSync Viewer provides a clear view of what files are different, along with easy controls for ignoring certain files during the Connect process.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" width=\"1231\" height=\"836\" src=\"https:\/\/localwp.com\/wp-content\/uploads\/2020\/02\/using-magic-sync-viewer.gif\" alt=\"\" class=\"wp-image-173\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In addition to MagicSync allowing you to control exactly what is deployed, using Connect does more for your deployment process:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Cache busting:<\/strong>&nbsp;We\u2019ll clear your site\u2019s cache when you launch changes.<\/li>\n\n\n\n<li><strong>Backups:<\/strong>&nbsp;We back up your site every two hours when you\u2019re pushing changes.<\/li>\n\n\n\n<li><strong>Security:<\/strong>\u00a0Unlike FTP (which exposes a direct connection to your site), MagicSync is routed through a separate micro-service before deploying.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" id=\"using-magicsync\" style=\"color:#000000\"><strong>Using MagicSync<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When using MagicSync to push or pull a site, there are three main steps that Local will do before showing the Viewer.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Local asks the server for a list of all the files located within the <em>remote <\/em>site.<\/li>\n\n\n\n<li>Local also creates a file list of all the files on the <em>local<\/em> site.<\/li>\n\n\n\n<li>Taking these two file lists, Local compares the two based on the file&#8217;s modification time.<\/li>\n<\/ul>\n\n\n<div id=\"help-step-block_cb3f4c6c2144e58da6e095387dace6ae\" class=\"help-note-container help-type-note\">\n\t<div class=\"help-icon\">\n\t\t<svg viewBox=\"0 0 512 512\" fill=\"currentColor\"><path fill=\"currentColor\" d=\"M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-464a208 208 0 1 0 0 416 208 208 0 1 0 0-416zm70.7 121.9c7.8-10.7 22.8-13.1 33.5-5.3 10.7 7.8 13.1 22.8 5.3 33.5L243.4 366.1c-4.1 5.7-10.5 9.3-17.5 9.8-7 .5-13.9-2-18.8-6.9l-55.9-55.9c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l36 36 105.6-145.2z\"><\/path><\/svg>\t<\/div>\n    <div class=\"help-text\">\n\t\t<p>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.<\/p>\n\t<\/div>\n<\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" id=\"all-modified-files\" style=\"color:#000000\"><strong>All modified files option <\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The \u201call modified files\u201d option can be thought of as a \u201cforce overwrite\u201d 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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So for example, if I\u2019m pushing a local site up to Flywheel\u2019s servers, Local will compare the two file lists, one for the local site and one for the server. It will then generate instructions to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add any files that are missing on the server<\/li>\n\n\n\n<li>Delete all files that do not exist on the local site<\/li>\n\n\n\n<li>Overwrite any remote files, regardless of what the modification time is.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Notice in this screenshot, the\u00a0<code>readme.txt<\/code>\u00a0file is older on the Local site, but because the \u201cAll modified files\u201d option is selected, it is still going to overwrite the remote site.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"697\" src=\"https:\/\/localwp.com\/wp-content\/uploads\/2022\/06\/magic-sync-all-modified-files-1024x697.png\" alt=\"MagicSync all modified files.\" class=\"wp-image-1673\" srcset=\"https:\/\/localwp.com\/wp-content\/uploads\/2022\/06\/magic-sync-all-modified-files-1024x697.png 1024w, https:\/\/localwp.com\/wp-content\/uploads\/2022\/06\/magic-sync-all-modified-files-300x204.png 300w, https:\/\/localwp.com\/wp-content\/uploads\/2022\/06\/magic-sync-all-modified-files-768x523.png 768w, https:\/\/localwp.com\/wp-content\/uploads\/2022\/06\/magic-sync-all-modified-files.png 1120w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">If we compare the above image with the \u201conly newer files\u201d option, we see that the file that is older on the Local site, does not show up as available to be pushed:<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"697\" src=\"https:\/\/localwp.com\/wp-content\/uploads\/2022\/06\/magic-sync-only-newer-1024x697.png\" alt=\"MagicSync for only newer files.\" class=\"wp-image-1672\" srcset=\"https:\/\/localwp.com\/wp-content\/uploads\/2022\/06\/magic-sync-only-newer-1024x697.png 1024w, https:\/\/localwp.com\/wp-content\/uploads\/2022\/06\/magic-sync-only-newer-300x204.png 300w, https:\/\/localwp.com\/wp-content\/uploads\/2022\/06\/magic-sync-only-newer-768x523.png 768w, https:\/\/localwp.com\/wp-content\/uploads\/2022\/06\/magic-sync-only-newer.png 1120w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-fe48e5de wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/community.localwp.com\/c\/support\/5\" target=\"_blank\" rel=\"noreferrer noopener\">Get Community Support<\/a><\/div>\n<\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>MagicSync makes Connect more valuable by giving you a view into what files have changed between environments. MagicSync makes it easier to push or pull only the files that have had changes to them, speeding up the process. Table of Contents: MagicSync Benefits The core benefit of using MagicSync is that only files that have&#8230;<\/p>\n","protected":false},"author":49,"parent":800,"menu_order":0,"template":"","tags":[42],"helpcategories":[],"class_list":["post-111","help","type-help","status-publish","hentry","tag-magicsync"],"acf":{"help_keywords":""},"_links":{"self":[{"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/help-doc\/111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/help-doc"}],"about":[{"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/types\/help"}],"author":[{"embeddable":true,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/users\/49"}],"version-history":[{"count":0,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/help-doc\/111\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/help-doc\/800"}],"wp:attachment":[{"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/media?parent=111"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/tags?post=111"},{"taxonomy":"helpcategories","embeddable":true,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/helpcategories?post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}