Huge snapdata unable to use snap restore

Hi, I have nextcloud-snap installation, nothing unusual, just few users. However their data is big. Big as ~2TB (fortunately on different volume defined in nextcloud configuration). I needed to move this snap to larger server. With nfs I just mounted some volume for “snapshots” then made snap save nextcloud which took days but was finished successfully. Then snap check-snapshot nextcloud which took days…

Now I have 1.8TB zip file and big trouble.

First problem: snap restore creating temporary folder where snap is unpacked. I can’t change this destination folder - so system volume on new server must have 2TB free space, then another 2TB volume for data to move.

Second problem: when I managed to give such space, snap restore after days of running finished with:

Restore data of snap "nextcloud" from snapshot set #2
error: cannot perform the following tasks:
- Restore data of snap "nextcloud" from snapshot set #2 (tar failed: context canceled)

but unzip&&untar works fine. So I thought “maybe I just install snap nextcloud” then rsync what is unpacked.

Third problem: permissions. As I carefully restored all permissions I had on old server, this still not working, as nextcloud-snap services has some problem with temp folders. So maybe I will “refresh” this snap?

Fourth problem: there is no such thing like snap refresh --force and only option is snap remove nextcloud && snap install nextcloud which…

Fifth problem: snap remove nextcloud will first make snap save

So now questions:

  • am I completely screwed with this?
  • any chance to fix permissions without use save/restore?
  • force refresh snap?
  • manually run “postinstall” part from nextcloud-snap?