Vault API documentation

asked 2019-03-17 22:31:00 +0300

GvH gravatar image

Hi, it's a bit annoying that the Backup functionality doesn't backup app data or Android data etc., so I thought I'd write a "vault unit" to care of those. From what I can see, the API seems to consist of .json files describing the units, and command line arguments passed to them at runtime; but what precisely those are, and what a unit must, may and may not do, isn't documented anywhere that I could find. Does anyone know more, such as where to find documentation?

edit retag flag offensive close delete

Comments

Maybe this could be a good topic for the next community meeting ?

MartinK ( 2019-03-18 11:25:35 +0300 )edit

Additionally, you can give a look to the source code also: https://git.merproject.org/mer-core/vault There is an examples subdir, but I don't know if it's self explaining enough…

Damien Caliste ( 2019-03-18 11:33:52 +0300 )edit

So here's what doesn't work: changing the .json files in /home/nemo/.vault/.units doesn't cause vault to use alternative scripts. In fact, any changes made in the terminal are reverted by vault when it runs. Adding an additional .json file seems to crash the Settings->Backup interface. Unfortunately, the source code at merproject.org isn't self-explanatory enough for me ...

GvH ( 2019-03-20 18:31:48 +0300 )edit