How to update your snap app while keeping the old settings you made before

Why you do this 

Sometimes, your ubuntu snap app may get errors, if that happens, you won’t be able to start your app correctly.

a typical error is: snap user-dirs.dirs permission denied

The only solution for you is to install that snap app again.
But you don’t wanna reset your app again, it’s a boring process. That’s why this article helps.

How you do it

1. remove your old app

snap remove **

This operation will automatically save a configuration of that app for you.

2. install your old app again

snap install **

3. restore your old data

get a number that represents your old app configure data

snap saved

restore your settings for that old app

snap restore <the_number>