<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to backup files stored in Dropbox when using Sync API? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-backup-files-stored-in-Dropbox-when-using-Sync-API/m-p/46964#M1486</link>
    <description>&lt;P&gt;Yes, I'm realizing that I'm going to have to just sync to a local cache of files so it operates a bit more like iCloud Drive. I was just trying to reduce the disk space required. But I think I can reduce the Dropbox cache size to accomplish that and still be able to access my files using NSFileManager calls, but interact with the Dropbox sync API for specific things, such as deleting files.  It'll be much easier to make my backups then.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Feb 2015 10:45:11 GMT</pubDate>
    <dc:creator>Brendan D.</dc:creator>
    <dc:date>2015-02-02T10:45:11Z</dc:date>
    <item>
      <title>How to backup files stored in Dropbox when using Sync API?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-backup-files-stored-in-Dropbox-when-using-Sync-API/m-p/46962#M1484</link>
      <description>&lt;P&gt;I have the requirement to allow the user to be able to backup all of their files. I have 3 locations I store files in my app. One is to store the files locally on the device. Second is to store the files in iCloud Drive in the Mobile Documents folder (which is just another folder in the file system), and third, in Dropbox.&lt;/P&gt;

&lt;P&gt;In the local and iCloud Drive situations, I can simply create a zip file that stores all of the files to be backed up.&lt;/P&gt;

&lt;P&gt;How would I go about doing that with Dropbox since there's no way of using regular NSFileManager calls on any files in Dropbox with the Sync API? Does it mean that every file I want to add to my zip file I have to first open a DBFile, read it into an NSData, then write it out to the local file system, then add that file to my zip archive? I can imagine that will perform very badly. Also, my directory structure can contain any number of folders and sub-folders. So this presents a bit of a problem for me I think when using the Sync API.&lt;/P&gt;

&lt;P&gt;Do you have any recommendations on how to handle this situation?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:45:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-backup-files-stored-in-Dropbox-when-using-Sync-API/m-p/46962#M1484</guid>
      <dc:creator>Brendan D.</dc:creator>
      <dc:date>2019-05-29T09:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to backup files stored in Dropbox when using Sync API?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-backup-files-stored-in-Dropbox-when-using-Sync-API/m-p/46963#M1485</link>
      <description>&lt;P&gt;Yes, you'd need to open each file (to download it or access a cached copy), and then add each to your zip file individually.&lt;/P&gt;

&lt;P&gt;I think the difference that's surprising you as compared to iCloud Drive (from your description) is that the Sync API doesn't proactively maintain local copies of files in Dropbox. It does cache them once they're accessed (on a MRU basis), in which case accessing the file should be quite fast. If the files aren't already in the local cache, though, it will take time to download them.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 10:11:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-backup-files-stored-in-Dropbox-when-using-Sync-API/m-p/46963#M1485</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-02-02T10:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to backup files stored in Dropbox when using Sync API?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-backup-files-stored-in-Dropbox-when-using-Sync-API/m-p/46964#M1486</link>
      <description>&lt;P&gt;Yes, I'm realizing that I'm going to have to just sync to a local cache of files so it operates a bit more like iCloud Drive. I was just trying to reduce the disk space required. But I think I can reduce the Dropbox cache size to accomplish that and still be able to access my files using NSFileManager calls, but interact with the Dropbox sync API for specific things, such as deleting files.  It'll be much easier to make my backups then.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 10:45:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-backup-files-stored-in-Dropbox-when-using-Sync-API/m-p/46964#M1486</guid>
      <dc:creator>Brendan D.</dc:creator>
      <dc:date>2015-02-02T10:45:11Z</dc:date>
    </item>
  </channel>
</rss>

