Android数据备份:被速率限制器中止 [英] Android Data Backup: aborted by rate limiter
问题描述
我已经成功备份了设备中的数据。重新安装后,我恢复了我的第一个备份数据。但是我的问题是对备份的进一步调用不会获得传输发送或保存的数据。
I have successfully backed up data from my device. On reinstallation, I get my first backup data restored. But my problem is further calls to backup don't get the data sent or saved by the Transport.
当我对备份服务进行调用时,这是我的日志:
When I make calls to the Backup service, this is my log:
D/BackupManagerService(748): Now staging backup of com.company.app
D/PerformBackupTask(748): invokeAgentForBackup on @pm@
I/BackupRestoreController(748): Getting widget state for user: 0
I/PerformBackupTask(748): no backup data written; not calling transport
D/PerformBackupTask(748): starting agent for backup of BackupRequest{pkg=com.company.app}
D/BackupManagerService(748): awaiting agent for ApplicationInfo{fe3f4f5 com.company.app}
D/BackupManagerService(748): agentConnected pkg=com.company.app agent=android.os.BinderProxy@7166327
I/BackupManagerService(748): got agent android.app.IBackupAgent$Stub$Proxy@2de849d4
D/PerformBackupTask(748): invokeAgentForBackup on com.company.app
D/BackupHelperDispatcher(31817): handling existing helper 'data_file' android.app.backup.FileBackupHelper@34d086c5
I/BackupRestoreController(748): Getting widget state for user: 0
I/GmsBackupTransport(11651): K/V backup for com.company.app aborted by rate limiter. next=1437068418200, current=1436978369321
I/BackupManagerService(748): Backup pass finished.
两行与我有关:
I/PerformBackupTask(748): no backup data written; not calling transport
I/GmsBackupTransport(11651): K/V backup for com.company.app aborted by rate limiter. next=1437068418200, current=1436978369321
这些正常吗?
当我随后进行备份调用时,可以看到我的数据存储在本地指定的文件中,因此我只能假设问题出在传输上。
When I do make subsequent calls to backup, I can see my data being stored locally in my designated file, so I can only assume the issue is with the Transport.
我想知道是否需要以某种方式对数据进行版本控制吗?
I'm wondering if I need to version my data in some way?
传输默认情况下会覆盖现有数据吗?
Does the Transport overwrite existing data by default?
推荐答案
被速率限制器中止消息为您提供了两个时代格式的日期(即next = 1483295674399,current = 1483213981015)。
The "aborted by rate limiter" message gives you two dates in epoch format (i.e. next=1483295674399, current=1483213981015).
您不能在下一个指定的日期/时间之前进行备份。要了解几点,请访问 http://www.epochconverter.com/ 。
You cannot do backup before the date/time stated by next. To know which time is that go to http://www.epochconverter.com/.
同时,您可以使用上一个答案所述的其他交通工具。
Meanwhile you can use other transport as stated by the previous answer.
问候,
Alberto
Regards, Alberto
这篇关于Android数据备份:被速率限制器中止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!