wekan / wekan-snap

Newest Wekan Snap docs wiki. Repo has old Snap code, newest Snap code at https://github.com/wekan/wekan , where is also more of newest WeKan docs at wiki.
https://github.com/wekan/wekan-snap/wiki
MIT License
71 stars 11 forks source link

Backup/restore and export to another server using snapshots of snaps #159

Closed lego992 closed 2 years ago

lego992 commented 2 years ago

I checked this way to backup/restore and to export to another server with same snap installation. Snapshots of snaps https://snapcraft.io/docs/snapshots Tested migration from server Ubuntu 16.04 to server Ubuntu 22.04 and vice versa.

---Backup/restore on same server---

snap save sudo snap restore xx

-xx is set number of snapshots
-snapshots are stored in the /var/lib/snapd/snapshots

---Export to another server---

snap save sudo snap export-snapshot xx my-snapshot1

-my-snapshot1 appears in root directory -after that we upload this file to another server and put it in the root directory(or different, then to point path)

sudo snap import-snapshot my-snapshot1 sudo snap restore xx reboot

xet7 commented 2 years ago

Please use mongodump/mongorestore instead https://github.com/wekan/wekan/wiki/Backup