7

I was told that I can re-install an app safely using snap remove brave and then snap install brave without losing the app data, so long as you don't add --purge.

So this is what I did. During the remove step there was a message: "backing up data for #112". I then re-installed, ran the app. Yeah, all data is gone, complete blank slate...

My question is: Is there ANY other location where the data might have been backed-up to other than /snap/<app>/ where I can restore it from?

EDIT: Just discovered that the data was saved:

~ » snap saved                                                                                                     andre@andre-office
Set  Snap   Age    Version  Rev  Size    Notes
31   brave  51.5m  1.24.82  112  1.72GB  auto
0
7

Ok, turns out that the snapshot was indeed saved it just didn't automatically restore it when I re-installed. The way that snapcraft makes these backups is detailed here: https://snapcraft.io/docs/snapshots

Looking at my saved snapshots showed that it was saved:

~ » snap saved                                                                                                     andre@andre-office
Set  Snap   Age    Version  Rev  Size    Notes
31   brave  51.5m  1.24.82  112  1.72GB  auto

So I just had to run, sudo snap restore 31 to get it all back.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.