Ionic offline backup and restore through json file

Hi guys!
I would to implement a backup system inside a offline only/first Ionic app. I would to create a backup json file and then upload it across computers browsers through web URL that my app released, like Airdroid and others examples.
What do you suggest me?

Do you have found out somehting about that? I’m facing a similar problem.