{"id":8792,"date":"2020-04-04T07:58:43","date_gmt":"2020-04-04T14:58:43","guid":{"rendered":"https:\/\/www.coretechnologies.com\/blog\/?p=8792"},"modified":"2023-01-07T17:35:01","modified_gmt":"2023-01-08T01:35:01","slug":"disable-smart-sync","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/dropbox-software\/disable-smart-sync\/","title":{"rendered":"Why you should Disable Smart Sync when Running Dropbox as a Windows Service"},"content":{"rendered":"<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"image-padding no-lazy-load\" title=\"Dropbox Smart Sync\" src=\"\/blog\/images\/dropbox-smart-sync.webp\" alt=\"Dropbox Smart Sync\" border=\"0\" width=\"281\" height=\"129\" \/><\/div>\n<div id=\"blog-toc-container\" style=\"margin-top: 20px;\">\n<p id=\"blog-toc-title\">In this article&#8230;<\/p>\n<ul>\n<li><a href=\"#what-is-smart-sync\">What is Dropbox Smart Sync?<\/a><\/li>\n<li><a href=\"#how-smart-sync-works\">How Smart Sync works: Supporting technologies<\/a>\n<ol>\n<li><a href=\"#sparse-files\">NTFS Sparse Files technology<\/a><\/li>\n<li><a href=\"#minifilter-driver\">Windows file system Minifilter driver technology<\/a><\/li>\n<li><a href=\"#ipc\">Windows Interprocess Communication (IPC)<\/a><\/li>\n<\/ol>\n<\/li>\n<li><a href=\"#requires-internet-connection\">Implication #1: Files cannot be downloaded without an Internet connection<\/a><\/li>\n<li><a href=\"#requires-dropbox\">Implication #2: Files cannot be downloaded if Dropbox isn&#8217;t running<\/a><\/li>\n<li><a href=\"#no-smart-sync-windows-service\">Implication #3: Files cannot be downloaded if Dropbox is running as a Windows Service<\/a><\/li>\n<li><a href=\"#disable-smart-sync\">How to Disable Smart Sync<\/a>\n<ul>\n<li><a href=\"#disable-smart-sync-folder\">Disable Smart Sync for a single folder<\/a><\/li>\n<li><a href=\"#turn-off-smart-sync\">Turn off Smart Sync for your Dropbox Plus, Professional, or Business account<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#help\">Questions about Smart Sync? Need Help?<\/a><\/li>\n<\/ul>\n<\/div>\n<p><a name=\"what-is-smart-sync\"><\/a><\/p>\n<h2 class=\"blog-caption\">What is Dropbox Smart Sync?<\/h2>\n<p>The team at Dropbox <a href=\"https:\/\/help.dropbox.com\/installs-integrations\/sync-uploads\/smart-sync\" target=\"_blank\" rel=\"noopener noreferrer\">says it best<\/a>:<\/p>\n<div class=\"blog-qa-question-box\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.coretechnologies.com\/images\/quotes-transparent-21x21.png\" width=\"21\" height=\"21\" \/>&nbsp;Smart Sync is a Dropbox feature that helps you save space on your hard drive. Access every file and folder in your Dropbox account from your computer, using virtually no hard drive space. Smart Sync is available for Dropbox Plus and Professional customers, and members of Dropbox Business teams.<\/p>\n<\/div>\n<p>And this short video discusses the considerable benefits of Smart Sync:<\/p>\n<div class=\"video-responsive image-padding\" align=\"left\"><iframe loading=\"lazy\" style=\"border: 1px solid #cdcdcd;\" src=\"https:\/\/www.youtube.com\/embed\/bg2nKQgEAh4\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<p>Indeed, Smart Sync has been a very popular feature since its debut in 2017.<\/p>\n<p><a name=\"how-smart-sync-works\"><\/a><\/p>\n<h2 class=\"blog-caption\">How Smart Sync works: Supporting technologies<\/h2>\n<p>Smart Sync leverages a trio of Windows capabilities:<\/p>\n<p><a name=\"sparse-files\"><\/a><\/p>\n<h3>1. NTFS Sparse Files technology<\/h3>\n<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/fileio\/sparse-files\" target=\"_blank\" rel=\"noopener noreferrer\">NTFS Sparse File<\/a> functionality allows Dropbox to create an &#8220;empty shell&#8221; for any file \u2014 with all the usual information (name, size, etc.) but with none of the actual content.<\/p>\n<p>So when you create a file on Dropbox.com, the file&#8217;s information (its &#8220;metadata&#8221;) is immediately downloaded to your computer but none of the file&#8217;s contents are transferred in that operation. As a result, you can see the file on your system but it consumes almost no space on your hard drive. Very efficient!<\/p>\n<p>But what happens when you try to access the zero-content file? That&#8217;s where the next technology comes in&#8230;<\/p>\n<p><a name=\"minifilter-driver\"><\/a><\/p>\n<h3>2. Windows file system Minifilter driver technology<\/h3>\n<p>When you access a file in your Dropbox folder, demanding to see its content, a <a href=\"https:\/\/www.osr.com\/nt-insider\/2017-issue2\/introduction-standard-isolation-minifilters\/\" target=\"_blank\" rel=\"noopener noreferrer\">Windows Minifilter driver<\/a> ensures that the file&#8217;s contents are quickly fetched from Dropbox.com. The arrangement is fairly technical, but the following example illustrates the basic concept.<\/p>\n<p>Suppose you have an online-only file called &#8220;notes.txt&#8221; in your Dropbox folder. Its contents have not yet been downloaded to your computer. When you double-click on the file:<\/p>\n<ol>\n<li>Windows starts Notepad (the program associated with .TXT files), passing it the full path to notes.txt.<\/li>\n<li>Notepad calls the Windows API <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/api\/fileapi\/nf-fileapi-readfile\" target=\"_blank\" rel=\"noopener noreferrer\">ReadFile function<\/a> to grab the contents of notes.txt<\/li>\n<li>But before invoking ReadFile, Windows intercepts the operation and notifies the Dropbox Minifilter that a program would like to read the contents of notes.txt.<\/li>\n<li>The Minifilter, seeing that the file&#8217;s contents have not yet been downloaded, arranges for the file&#8217;s contents to be retrieved from Dropbox.com and saved on the local PC.<\/li>\n<li>Windows next calls ReadFile, which returns the contents of the file.<\/li>\n<li>Notepad displays the contents of the file.<\/li>\n<\/ol>\n<p>Most of the magic happens in step 4. The next section examines how that works.<\/p>\n<p><a name=\"ipc\"><\/a><\/p>\n<h3>3. Windows Interprocess Communication (IPC)<\/h3>\n<p>At first, we thought that the Minifilter component did all the heavy lifting, downloading content as necessary. However <a href=\"https:\/\/help.dropbox.com\/installs-integrations\/sync-uploads\/filesystem-integration\" target=\"_blank\" rel=\"noopener noreferrer\">Dropbox<\/a> says otherwise (the Minifilter is a &#8220;system extension&#8221;):<\/p>\n<div class=\"blog-qa-question-box\">\n<table>\n<tbody>\n<tr>\n<td style=\"vertical-align: top; width: 28px;\"><img decoding=\"async\" src=\"\/images\/quotes-transparent-21x21.png\" \/><\/td>\n<td>We don\u2019t use system extensions to make network requests<br \/>\nWe don\u2019t use system extensions to parse any data in the filesystem<br \/>\nWe don\u2019t use system extensions to read or write files<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Clearly the Minifilter isn&#8217;t downloading the files from Dropbox.com. So what&#8217;s doing it?<\/p>\n<p>The answer: Dropbox.exe \u2014 the process run when you launch Dropbox on your desktop.<\/p>\n<p>So when you request an &#8220;online-only&#8221; file not yet on your hard drive:<\/p>\n<ol>\n<li>The Minifilter receives the request.<\/li>\n<li>The Minifilter contacts the Dropbox.exe process and asks it to get the file.<\/li>\n<li>Dropbox.exe goes out to the Internet and downloads the file from Dropbox.com.<\/li>\n<li>Windows makes the file available to the user.<\/li>\n<\/ol>\n<p>The Minifilter and Dropbox.exe interact using <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/ipc\/interprocess-communications\" target=\"_blank\" rel=\"noopener noreferrer\">Windows Interprocess Communication<\/a> \u2014 a collection of technologies supporting communication between different programs.<\/p>\n<p style=\"margin-top: 30px;\">Now that we understand how Smart Sync works, let&#8217;s highlight three implications of the technical architecture.<\/p>\n<p><a name=\"requires-internet-connection\"><\/a><\/p>\n<h2 class=\"blog-caption\">Implication #1: Files cannot be downloaded without an Internet connection<\/h2>\n<p>This shouldn&#8217;t be a surprise.<\/p>\n<p>Since files are fetched from the cloud as needed, you must be connected to the Internet to download files from Dropbox.com.<\/p>\n<p>Dropbox confirms this limitation in <a href=\"https:\/\/help.dropbox.com\/installs-integrations\/sync-uploads\/smart-sync\" target=\"_blank\" rel=\"noopener noreferrer\">their FAQ<\/a> as well:<\/p>\n<div class=\"blog-qa-question-box\"><img decoding=\"async\" src=\"\/images\/quotes-transparent-21x21.png\" \/> <b>Can I access online-only content when I\u2019m not connected to the internet?<\/b><br \/>\nNo, online-only content isn\u2019t stored locally on your computer. Connect to the internet to access online-only content.<\/p>\n<\/div>\n<p><a name=\"requires-dropbox\"><\/a><\/p>\n<h2 class=\"blog-caption\">Implication #2: Files cannot be downloaded if Dropbox isn&#8217;t running<\/h2>\n<p>As mentioned before, the Dropbox process (Dropbox.exe) plays a key role in downloading &#8220;incomplete&#8221; Smart Sync files. No file can be downloaded if Dropbox is not running.<\/p>\n<p>To be clear, the Minifilter is always notified when you try to access an &#8220;online-only&#8221; file in the Dropbox folder. But if Dropbox isn&#8217;t running, there is no way for the Minifilter to download the file. The operation fails and you get a wonderful &#8220;Unspecified error&#8221; message (pictured here from the <a href=\"https:\/\/www.dropboxforum.com\/t5\/Dropbox-installs-integrations\/I-m-unable-to-open-locally-synced-files-I-m-getting-an-quot\/td-p\/322211\" target=\"_blank\" rel=\"noopener noreferrer\">Dropbox forums<\/a>):<\/p>\n<div align=\"center\"><a class=\"zoomPopup\" title=\"Unspecified Error when opening a file\" href=\"\/blog\/images\/unspecified-error-opening-file.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" title=\"Unspecified Error when opening a file (click to enlarge)\" src=\"\/blog\/images\/unspecified-error-opening-file.png\" alt=\"Unspecified Error when opening a file\" width=\"520\" border=\"0\" \/><\/a><\/div>\n<p>Note that this behavior only occurs when Smart Sync is on. Without Smart Sync \u2014 where Dropbox synchronizes all files to your hard drive \u2014 <b>each document you see on your computer is readily available whether Dropbox is running or not<\/b>.<\/p>\n<p><a name=\"no-smart-sync-windows-service\"><\/a><\/p>\n<h2 class=\"blog-caption\">Implication #3: Files cannot be downloaded if Dropbox is running as a Windows Service<\/h2>\n<p>Perhaps the most subtle consequence of the Smart Sync architecture has to do with background operation. Specifically, <b>the Minifilter and Dropbox must operate in the same Windows Session<\/b> for the two to communicate.<\/p>\n<p>This is not a problem when you use Dropbox interactively on the desktop. All components run in the single logon session and Dropbox downloads files on demand, as expected.<\/p>\n<p>However, customers running Dropbox as a background Windows Service face a problem. Dropbox will be running in <a href=\"\/WindowsServices\/FAQ.html#WhatIsSession0Isolation\">Session 0<\/a> (the home for all Windows Services), while the Minifilter will be operating in the user&#8217;s interactive session (for example Session 1). The components will not be able to communicate and the files cannot be downloaded or opened. The &#8220;Unspecified Error&#8221; will abound.<\/p>\n<p>So if you&#8217;re running Dropbox as a Windows Service (perhaps with our <a href=\"\/products\/AlwaysUp\/Apps\/RunDropboxAsAService.html\">AlwaysUp utility<\/a>), you should definitely turn Smart Sync off. Read on to find out how to do that.<\/p>\n<p><a name=\"disable-smart-sync\"><\/a><\/p>\n<h2 class=\"blog-caption\">How to Disable Smart Sync<\/h2>\n<p>You have a couple of options. You can either disable Smart Sync for specific folders, or turn off the feature entirely.<\/p>\n<p><a name=\"disable-smart-sync-folder\"><\/a><\/p>\n<h3>Disable Smart Sync for a single folder<\/h3>\n<p>This video illustrates how to adjust your Smart Sync folder settings:<\/p>\n<div class=\"video-responsive image-padding\" align=\"left\"><iframe loading=\"lazy\" style=\"border: 1px solid #cdcdcd;\" src=\"https:\/\/www.youtube.com\/embed\/ek4qrtsEi7w\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<p>And here are the step-by-step instructions to disable Smart Sync for a specific folder only:<\/p>\n<ol>\n<li>Click the Dropbox tray icon (<img decoding=\"async\" title=\"Dropbox tray icon\" src=\"https:\/\/cdn.coretechnologies.com\/products\/AlwaysUp\/Apps\/dropbox-tray-icon-27x25.png\" alt=\"Dropbox tray icon\" align=\"absmiddle\" \/>) to open the Dropbox menu<\/li>\n<li>Click the folder icon in the upper right:\n<div align=\"center\"><a class=\"zoomPopup\" title=\"Open Dropbox Folder\" href=\"\/blog\/images\/open-dropbox-folder.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" title=\"Open Dropbox Folder (click to enlarge)\" src=\"\/blog\/images\/open-dropbox-folder.png\" alt=\"Open Dropbox Folder\" border=\"0\" \/><\/a><\/div>\n<\/li>\n<li>Find the folder that you would like to change. Right-click that folder and select <b>Smart Sync &gt; Local<\/b> from the menu:\n<div align=\"center\"><a class=\"zoomPopup\" title=\"Set Smart Sync folder to Local\" href=\"\/blog\/images\/set-smart-sync-local.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" title=\"Set Smart Sync folder to Local (click to enlarge)\" src=\"\/blog\/images\/set-smart-sync-local.png\" alt=\"Set Smart Sync folder to Local\" width=\"520\" border=\"1\" \/><\/a><\/div>\n<\/li>\n<\/ol>\n<p>That&#8217;s it. In a minute or two, the Dropbox process will notice the change and will download the entire folder to your hard drive.<\/p>\n<p><a name=\"turn-off-smart-sync\"><\/a><\/p>\n<h3>Turn off Smart Sync for your Dropbox Plus, Professional, or Business account<\/h3>\n<p>To turn off the Smart Sync feature entirely, please follow these <a href=\"https:\/\/help.dropbox.com\/installs-integrations\/sync-uploads\/filesystem-integration#optout\" target=\"_blank\" rel=\"noopener noreferrer\">instructions to opt out of the system extension<\/a> on Dropbox.com.<\/p>\n<p>Dropbox Business team administrators can deactivate Smart Sync by <a href=\"https:\/\/www.dropbox.com\/team\/admin\/settings\/smart_sync\/opt_out\" target=\"_blank\" rel=\"noopener noreferrer\">opting out here<\/a> (sign in required).<\/p>\n<p><a name=\"help\"><\/a><\/p>\n<h2 class=\"blog-caption\">Questions about Smart Sync? Need Help?<\/h2>\n<p>Please <a href=\"\/support\/\">get in touch<\/a> and we&#8217;ll be happy to help \u2014 with this or any Dropbox feature.<\/p>\n<div align=\"center\">\n<div class=\"cta-button-1\">\n<table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"left\">\n<tbody>\n<tr>\n<td align=\"center\"><a href=\"\/blog\/tag\/dropbox\/\" title=\"More about running Dropbox as a Windows Service\"><span><nobr>Read more articles about Dropbox&#8230;<\/nobr><\/span><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/capture-console-output-feature\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"AlwaysUp Feature Spotlight: Capture Console Output\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/save-console-output-to-log-file-150x150-1.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">AlwaysUp Feature Spotlight: Capture Console Output<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/google-drive-updates\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: How do I get AlwaysUp to Run the Latest Google Drive for desktop?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/google-drive-150x150-1.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: How do I get AlwaysUp to Run the Latest Google Drive for desktop?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/company\/taa-compliance\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Our Software is TAA Compliant\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/taa-compliant-150x150-1.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Our Software is TAA Compliant<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>In this article&#8230; What is Dropbox Smart Sync? How Smart Sync works: Supporting technologies NTFS Sparse Files technology Windows file system Minifilter driver technology Windows Interprocess Communication (IPC) Implication #1: Files cannot be downloaded without an Internet connection Implication #2: &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/dropbox-software\/disable-smart-sync\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":9098,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[26,69,210,209,208],"class_list":["post-8792","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dropbox-software","tag-alwaysup-tag","tag-dropbox","tag-interprocess-communication","tag-minifilter-driver","tag-smart-sync"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/8792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=8792"}],"version-history":[{"count":14,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/8792\/revisions"}],"predecessor-version":[{"id":11750,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/8792\/revisions\/11750"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/9098"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=8792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=8792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=8792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}