I just installed SNAP from ESA taking care to set the install dir to another location than the ubuntu’s /home//snap.
However, after the install I loose part of my ubuntu snap applications (including my zotero bibliography with my notes, which contains days of work, not synchronized of course…).
By inspecting the installation logs I found this part:
so it looks like my ubuntu snap was deleted, but there is this line “Property backupForRollback: true” and the following lines “Backing up…” for every files in the directory.
Is there a way to rollback the installation and recover my files?
I think this is not possible. Rollback here means, that in case of an error the installation can be rolled back. But since it succeeded, I think it is not possible to get it back.
Maybe you are lucky and they are still in a temp directory.
Check the installation.log file you have already found and look for the property exe4j.tempDir.
Maybe in the specified directory you can still find the data.
Actually now that I learn the hard way, snap is now the standard way to install applications in Ubuntu (at least for Ubuntu 20.04). The applications data directories are located in /snap/ (actually they are compressed filesystem contained in /var/lib/snap mounted in /snap). The directory ~/snap is meant to store personal data, it has several functions including data containment for each app and data snapshots (automatic during app upgrade, can be manual too, now I know).
This problem is likely to be reproduced for all future Ubuntu users.
Is there a way to help push forward a fix for this?
The key issue is that ESA snap currently makes it very easy for Ubuntu users to accidentally delete their application data. I found this forum thread when trying to figure out why I lost all my browser tabs and bookmarks.
To reiterate what florent mentioned, every Ubuntu user has a ~/snap directory which is already in use, and when the ESA snap installer tries to helpfully erase old data, it also erases data which is completely unrelated to it, due to the namespace conflict. Setting the default install directory for Ubuntu users to something like ~/esa_snap would fix this.