如何将用户生成的数据迁移到计算机?

发布于 2024-08-18 09:08:33 字数 281 浏览 8 评论 0原文

我对 PC 上第三方应用程序数据的备份有疑问。

我正在开发一个可以存储照片、文本、录音的应用程序。 用户可以添加照片或录音的数量。

因此在运行时,应用程序存储的大小将不断增加。 用户永远不想丢失他的数据,但存储空间是有限的。 因此,在他的电脑上备份数据,然后从 iPhone 中删除似乎是有必要的。

那么备份第三方应用程序数据的标准方法是什么?

有什么方法可以使用 iTunes 在 MAC 和 Windows 上保存数据吗?

第三方应用程序可以占用的存储量有限制吗?

I have a query regarding BackUp of third party application data on PC.

I am developing an application which can store photos, text, recordings.
The user can add number of photos or recordings.

So at the runtime, size of application storage will go on increasing.
User will never want to loose his data but storage is limited.
Hence taking backup of data on his computer and then deleting from iPhone seems essential.

So what is the standard way of taking backup of third party application data?

Is there any way by which we can save the data on MAC as well as Windows using iTunes?

Is there any limit on amount of storage a third party application can take?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

柠檬心 2024-08-25 09:08:33

当 iPhone 插入同步时,iTunes 将对 iPhone 执行完整备份,其中将包含所有特定于应用程序的数据文件。但是,恢复此情况的唯一方法是恢复整个系统映像,因此这只是紧急备份,而不是您所需要的。

第三方通常提供自己的备份和同步策略。有两种广泛的方法:

  • )与同一应用程序的配套桌面版本(例如 OmniFocus、Things、Four Track)结合
  • 使用 Web 服务(例如,Flickr 的 Darkslide

使用 Web 服务通常通过 AJAX API(或等价),但对于大文件的备份显然会花费更长的时间。桌面同步产品提供自己的同步产品(例如,OmniFocus 使用 WebDAV 服务器)并使用内部同步引擎来保持最新状态,并且可以使用 WiFi 连接进行同步。

因此,无论哪种方式,您很可能都必须编写自己的服务器来处理自己的备份,并适当地处理文件类型和元数据。我不知道有没有第三方解决方案,但如果存在,它将非常通用,并且可能不适合您的特定需求(例如文件格式等)。

那么备份第三方应用程序数据的标准方法是什么?

编写您自己的同步服务器并通过 WiFi 连接。首先查看 WebDAV,因为您可以相当轻松地在上面构建一些东西。

有什么方法可以使用 iTunes 在 MAC 和 Windows 上保存数据吗?

iTunes 只会进行完整的系统备份。最好的选择是将同步服务器编写为可移植的。

第三方应用程序可以占用的存储量有限制吗?

AFAIK iPhone 上没有每个应用程序的存储限制。如果您提供自己的解决方案,您可以执行诸如将 30 天之前的任何内容存档到 Mac/PC 上之类的操作,这样您就只保留最近的文件。然后让他们选择“最喜欢的”,无论年龄大小,这些都会保留在 iPhone 上。

iTunes will perform a complete backup of the iPhone when it is plugged in for sync, which will contain all the application-specific data files. However, the only way to restore this is to restore the entire system image, so that is only an emergency backup, not what you need.

Third parties have typically provided their own backup and synchronisation strategies. There are two broad approaches:

  • in conjunction with a companion desktop version of the same application (eg. OmniFocus, Things, Four Track)
  • using a web service (eg. Darkslide for Flickr)

The web services are typically accessed via an AJAX API (or equivalent), but will obviously take longer for backups of large files. The desktop sync products provide their own (eg. OmniFocus uses a WebDAV server) and use an internal sync engine to keep things up to date, and can sync using the WiFi connection.

So either way, you are most likely going to have to write your own server to handle your own backups, and deal appropriately with the file types and metadata. I don't know of a third-party solution to this, but if one exists, it would be very generic, and may not suit your particular needs (eg. for file formats, etc).

So what is the standard way of taking backup of third party application data?

Write your own sync server and connect via WiFi. Start by looking at WebDAV, as you can build something on top fairly easily.

Is there any way by which we can save the data on MAC as well as Windows using iTunes?

iTunes will only do a full system backup. Your best bet is to write your sync server to be portable.

Is there any limit on amount of storage a third party application can take?

AFAIK there is no per-application storage limit on the iPhone. If you provide your own solution, you could do something like archive anything older than 30 days onto the Mac/PC, so you are only keeping recent files. Then allow them to choose "favourites" and those will be kept on the iPhone regardless of age.

余生再见 2024-08-25 09:08:33

您可以使用 iTunes 备份您的 iPhone。在传输 iPhone 数据的过程中,系统会要求您备份应用程序。但是,如果您的应用程序不是来自 iTunes 库,则在设备上恢复它们​​时可能无法安装它们。

You can use iTunes to back up your iPhone. During the process of transferring the iPhone data, you will be asked to back up apps. But if your apps are not from iTunes library, you may not install them when you restore them on devices.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文