shell - Questions about the new auto-backup feature of Android M -


background

google has introduced nice new feature on android m allows backup , restore apps, using adb , shown on this video .

it seems have use adb shell bmgr command backup , restore apps, such:

backup:

adb shell bmgr fullbackup package_name 

restore app:

adb shell bmgr restore package_name 

and works well.

the problem

the docs quite in new phase, can't find answers questions new tool.

what i've tried

when typing adb shell bmgr, clues how use it, can't find answers questions. not having device android m , emulator instead, guess work differently.

here's what's written when typing command:

usage: bmgr [backup|restore|list|transport|run] bmgr backup package bmgr enable bool bmgr enabled bmgr list transports bmgr list sets bmgr transport bmgr restore token bmgr restore token package... bmgr restore package bmgr run bmgr wipe transport package bmgr fullbackup package...

the 'backup' command schedules backup pass named package. note backup pass no-op if package not have changed data store.

the 'enable' command enables or disables entire backup mechanism. if argument 'true' enabled, otherwise disabled. when disabled, neither backup or restore operations performed.

the 'enabled' command reports current enabled/disabled state of backup mechanism.

the 'list transports' command reports names of backup transports available on device. these names can passed arguments 'transport' , 'wipe' commands. active transport indicated '*' character.

the 'list sets' command reports token , name of each restore set available device via active transport.

the 'transport' command designates named transport active one. setting persistent across reboots.

the 'restore' command when given restore token initiates full-system restore operation active transport. deliver restore set designated token argument each application had contributed data restore set.

the 'restore' command when given token , 1 or more package names initiates restore operation of given packages restore set designated token argument. same 'restore' operation supplying token, applies filter set of applications restored.

the 'restore' command when given package name intiates restore of 1 package according restore set selection algorithm used restoresession.restorepackage() method.

the 'run' command causes scheduled backup operation initiated immediately, without usual waiting period batching data changes.

the 'wipe' command causes backed-up data given package erased given transport's storage. next backup operation given application performs rewrite entire data set. transport names use here reported 'list transports'.

the 'fullbackup' command induces full-data stream backup 1 or more packages. data sent via active transport.

the questions

i have few questions:

  1. suppose call commands via device itself, work? if not, work on rooted device? or @ least backup&restore current app (app x backups&restores itself) ?

  2. where backups being stored? possible store them customized path ? maybe 1 of pc ?

  3. is possible backup same app multiple states? example, app have backup when has logged in, , backup when has settings being configured. way, restore each of backups.

  4. they write in above description "currently active transport" . ? can customized?

  5. is possible run backup/restore on apps? or should put packages of apps?

  6. it seems "fullbackup" backup right away. "run" attribute used for? or maybe that's because use emulator?

if haven't seen them, here reference documents new features related auto backup. backup capabilities existed in previous versions , described in guide. i've worked them on kitkat. after quick scan, appears new features in m preview are:

  1. automatic daily backup
  2. more options configuring , controlling included in backup.

much of question focuses on adb shell bmgr tool. developer testing. in normal device use, backup done automatically every 24 hours, when device idle, charging, , connected wi-fi network.

suppose call commands via device itself, work?

with backup being done automatically, there need that?

where backups being stored? possible store them customized path ? maybe 1 of pc ?

stored user's google drive account. no. no.

they write in above description "currently active transport" . ? can customized?

provided google. don't think so.

is possible run backup/restore on apps? or should put packages of apps?

by default, apps backed up. reference docs describe how limit included.

it seems "fullbackup" backup right away. "run" attribute used for? or maybe that's because use emulator?

in addition new auto backup capability, app can perform incremental backups, described in guide mentioned above. run command provided testing, allow developer force immediate activation of incremental backup processing.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -