{"id":"icloud.should-i-keep-code-or-databases-in-icloud-drive","url":"/faq/icloud/should-i-keep-code-or-databases-in-icloud-drive","category":{"id":"icloud","title":"iCloud & iCloud Photos"},"subcategory":{"id":"icloud-drive-basics","title":"iCloud Drive basics"},"question":"Should I keep code projects, databases or app libraries in iCloud Drive?","alt_questions":["Git repo in iCloud Drive problems","node_modules in iCloud Drive","Lightroom catalog in iCloud Drive","developer folder in Documents synced to iCloud","icloud drive conflicts with project files"],"short_answer":"Best not to. Code repositories, build and dependency folders, databases and app catalogs change constantly and sync poorly — lagging uploads, conflict copies and evicted files. Keep them outside iCloud-synced folders and back them up separately.","answer_markdown":"It's best not to. Folders that change constantly in many small files — code repositories, build folders, dependency folders, databases and app catalogs — sync poorly: uploads lag behind, devices can see half-written states, and conflicting copies appear. Some files may also be made online-only when a tool expects them on disk.\n\nKeep these somewhere iCloud doesn't sync — a folder in your home folder outside Desktop & Documents, or an external drive — and back them up separately (or use the project's own remote, like a code host). See [the \"file 2\" duplicates in iCloud](/faq/icloud/why-are-there-duplicate-file-2-copies-in-icloud-drive).","answer_html":"<p>It&#39;s best not to. Folders that change constantly in many small files — code repositories, build folders, dependency folders, databases and app catalogs — sync poorly: uploads lag behind, devices can see half-written states, and conflicting copies appear. Some files may also be made online-only when a tool expects them on disk.</p>\n<p>Keep these somewhere iCloud doesn&#39;t sync — a folder in your home folder outside Desktop &amp; Documents, or an external drive — and back them up separately (or use the project&#39;s own remote, like a code host). See <a href=\"/faq/icloud/why-are-there-duplicate-file-2-copies-in-icloud-drive\">the &quot;file 2&quot; duplicates in iCloud</a>.</p>","answer_text":"It's best not to. Folders that change constantly in many small files — code repositories, build folders, dependency folders, databases and app catalogs — sync poorly: uploads lag behind, devices can see half-written states, and conflicting copies appear. Some files may also be made online-only when a tool expects them on disk.\n\nKeep these somewhere iCloud doesn't sync — a folder in your home folder outside Desktop & Documents, or an external drive — and back them up separately (or use the project's own remote, like a code host). See the \"file 2\" duplicates in iCloud.","tags":["icloud drive","developers","sync conflicts"],"related":[{"id":"icloud.why-are-there-duplicate-file-2-copies-in-icloud-drive","question":"Why do I see copies like \"file 2\" in iCloud Drive?","url":"/faq/icloud/why-are-there-duplicate-file-2-copies-in-icloud-drive"},{"id":"icloud.can-i-store-my-photos-library-inside-icloud-drive","question":"Can I keep my Photos library inside iCloud Drive or another synced folder?","url":"/faq/icloud/can-i-store-my-photos-library-inside-icloud-drive"},{"id":"icloud.how-do-i-exclude-a-folder-from-icloud-drive","question":"Can I stop iCloud Drive syncing one folder?","url":"/faq/icloud/how-do-i-exclude-a-folder-from-icloud-drive"}],"applies_to":"all","last_reviewed":"2026-10-01","title":"Should I keep code projects, databases or app libraries in iCloud Drive? — Storage Studio FAQ","description":"Best not to. Code repositories, build and dependency folders, databases and app catalogs change constantly and sync poorly — lagging uploads, conflict copies and evicted files. Keep them outside iCloud-synced folders and back them up separately.","crumbs":[{"name":"Home","path":"/"},{"name":"FAQ","path":"/faq/"},{"name":"iCloud & iCloud Photos","path":"/faq/icloud/"},{"name":"Should I keep code projects, databases or app libraries in iCloud Drive?","path":"/faq/icloud/should-i-keep-code-or-databases-in-icloud-drive"}],"jsonld":{"@context":"https://schema.org","@type":"FAQPage","url":"https://storagestudio.us/faq/icloud/should-i-keep-code-or-databases-in-icloud-drive","inLanguage":"en","dateModified":"2026-10-01","mainEntity":[{"@type":"Question","name":"Should I keep code projects, databases or app libraries in iCloud Drive?","alternateName":["Git repo in iCloud Drive problems","node_modules in iCloud Drive","Lightroom catalog in iCloud Drive","developer folder in Documents synced to iCloud","icloud drive conflicts with project files"],"acceptedAnswer":{"@type":"Answer","text":"It's best not to. Folders that change constantly in many small files — code repositories, build folders, dependency folders, databases and app catalogs — sync poorly: uploads lag behind, devices can see half-written states, and conflicting copies appear. Some files may also be made online-only when a tool expects them on disk.\n\nKeep these somewhere iCloud doesn't sync — a folder in your home folder outside Desktop & Documents, or an external drive — and back them up separately (or use the project's own remote, like a code host). See the \"file 2\" duplicates in iCloud.","url":"https://storagestudio.us/faq/icloud/should-i-keep-code-or-databases-in-icloud-drive"}}]},"fragment":"<div class=\"wrap fl-wrap\"><div class=\"fl-layout\"><aside class=\"fl-side\" aria-label=\"FAQ topics\"><details open><summary>All topics</summary><ul class=\"fl-tree\"><li><a href=\"/faq/getting-started/\">Getting started</a> <span>70</span></li><li><a href=\"/faq/freeing-space/\">Freeing up space</a> <span>182</span></li><li><a href=\"/faq/moving-folders/\">Moving folders</a> <span>144</span></li><li><a href=\"/faq/apps/\">Apps</a> <span>146</span></li><li><a href=\"/faq/external-drives/\">External drives</a> <span>169</span></li><li><a href=\"/faq/finder-location/\">Finding things in Finder</a> <span>70</span></li><li><a href=\"/faq/cloud-accounts/\">Cloud accounts</a> <span>158</span></li><li class=\"fl-open\"><a href=\"/faq/icloud/\" aria-current=\"true\">iCloud &amp; iCloud Photos</a> <span>168</span><ul><li><a href=\"/faq/icloud/#storage-studio-and-icloud\">Storage Studio and iCloud</a> <span>24</span></li><li><a href=\"/faq/icloud/#online-only-files\">Online-only files and Optimize Mac Storage</a> <span>17</span></li><li class=\"fl-on\"><a href=\"/faq/icloud/#icloud-drive-basics\">iCloud Drive basics</a> <span>23</span></li><li><a href=\"/faq/icloud/#desktop-and-documents\">Desktop &amp; Documents in iCloud</a> <span>10</span></li><li><a href=\"/faq/icloud/#icloud-photos\">iCloud Photos and the Photos library</a> <span>28</span></li><li><a href=\"/faq/icloud/#icloud-and-external-drives\">iCloud and external drives</a> <span>7</span></li><li><a href=\"/faq/icloud/#icloud-storage-plan\">iCloud storage space and plans</a> <span>18</span></li><li><a href=\"/faq/icloud/#universal-clipboard\">Universal Clipboard and Handoff</a> <span>5</span></li><li><a href=\"/faq/icloud/#icloud-troubleshooting\">Troubleshooting iCloud space</a> <span>15</span></li><li><a href=\"/faq/icloud/#icloud-sharing\">Sharing folders and photo libraries</a> <span>5</span></li><li><a href=\"/faq/icloud/#messages-mail-backups\">Messages, Mail and device backups in iCloud</a> <span>7</span></li><li><a href=\"/faq/icloud/#icloud-security\">Security and Advanced Data Protection</a> <span>3</span></li><li><a href=\"/faq/icloud/#icloud-everywhere\">iCloud on the web, Windows and other apps</a> <span>6</span></li></ul></li><li><a href=\"/faq/data-transfers/\">Data Transfers</a> <span>119</span></li><li><a href=\"/faq/backups/\">Backups &amp; restore points</a> <span>126</span></li><li><a href=\"/faq/delta-drive/\">Delta Drive, Delta Trust &amp; My Drive</a> <span>125</span></li><li><a href=\"/faq/bridge-devices/\">Bridge &amp; your devices</a> <span>111</span></li><li><a href=\"/faq/duplicates/\">Duplicate files</a> <span>74</span></li><li><a href=\"/faq/junk-yard/\">Junk Yard</a> <span>113</span></li><li><a href=\"/faq/tuhi-assistant/\">Tuhi, your storage assistant</a> <span>105</span></li><li><a href=\"/faq/settings/\">Settings &amp; keep-time</a> <span>88</span></li><li><a href=\"/faq/performance-battery/\">Performance &amp; battery</a> <span>62</span></li><li><a href=\"/faq/privacy-safety/\">Privacy &amp; safety</a> <span>85</span></li><li><a href=\"/faq/licensing-payments/\">Licensing &amp; payments</a> <span>131</span></li><li><a href=\"/faq/troubleshooting/\">Troubleshooting &amp; messages</a> <span>180</span></li><li><a href=\"/faq/comparisons/\">Comparisons &amp; alternatives</a> <span>75</span></li><li><a href=\"/faq/mac-storage-basics/\">Mac storage basics</a> <span>315</span></li></ul></details></aside><div class=\"fl-main\"><nav class=\"fl-crumbs\" aria-label=\"Breadcrumb\"><ol><li><a href=\"/\">Home</a></li><li><a href=\"/faq/\">FAQ</a></li><li><a href=\"/faq/icloud/\">iCloud &amp; iCloud Photos</a></li><li aria-current=\"page\">Should I keep code projects, databases or app libraries in iCloud Drive?</li></ol></nav>\n<form class=\"fl-search\" action=\"/faq/search\" method=\"get\" role=\"search\" data-fl-search>\n<label class=\"fl-visually-hidden\" for=\"fl-q\">Search the FAQ</label>\n<input id=\"fl-q\" type=\"search\" name=\"q\" value=\"\" placeholder=\"Search 2,816 questions…\" autocomplete=\"off\" spellcheck=\"false\">\n<button type=\"submit\">Search</button>\n<div class=\"fl-suggest\" role=\"listbox\" hidden></div>\n</form>\n<article class=\"fl-entry\">\n<p class=\"eyebrow fl-eyebrow\"><a href=\"/faq/icloud/\">iCloud &amp; iCloud Photos</a> · <a href=\"/faq/icloud/#icloud-drive-basics\">iCloud Drive basics</a></p>\n<h1>Should I keep code projects, databases or app libraries in iCloud Drive?</h1>\n<p class=\"fl-short\"><strong>Short answer:</strong> Best not to. Code repositories, build and dependency folders, databases and app catalogs change constantly and sync poorly — lagging uploads, conflict copies and evicted files. Keep them outside iCloud-synced folders and back them up separately.</p>\n<div class=\"fl-answer\"><p>It&#39;s best not to. Folders that change constantly in many small files — code repositories, build folders, dependency folders, databases and app catalogs — sync poorly: uploads lag behind, devices can see half-written states, and conflicting copies appear. Some files may also be made online-only when a tool expects them on disk.</p>\n<p>Keep these somewhere iCloud doesn&#39;t sync — a folder in your home folder outside Desktop &amp; Documents, or an external drive — and back them up separately (or use the project&#39;s own remote, like a code host). See <a href=\"/faq/icloud/why-are-there-duplicate-file-2-copies-in-icloud-drive\">the &quot;file 2&quot; duplicates in iCloud</a>.</p></div>\n\n<p class=\"fl-meta\">Last reviewed <time datetime=\"2026-10-01\">October 1, 2026</time></p>\n\n<section class=\"fl-related\"><h2>Related questions</h2><ul><li><a href=\"/faq/icloud/why-are-there-duplicate-file-2-copies-in-icloud-drive\">Why do I see copies like &quot;file 2&quot; in iCloud Drive?</a></li><li><a href=\"/faq/icloud/can-i-store-my-photos-library-inside-icloud-drive\">Can I keep my Photos library inside iCloud Drive or another synced folder?</a></li><li><a href=\"/faq/icloud/how-do-i-exclude-a-folder-from-icloud-drive\">Can I stop iCloud Drive syncing one folder?</a></li></ul></section>\n<p class=\"fl-formats\">Also available as <a href=\"/faq/icloud/should-i-keep-code-or-databases-in-icloud-drive.md\">Markdown</a> and <a href=\"/faq/icloud/should-i-keep-code-or-databases-in-icloud-drive.json\">JSON</a>.</p>\n</article></div></div></div>"}