But what about update itself? Is it working and safe to update? (NC 25.0.2 installed. TrueNAS 13.04)
When you do the update with the update button from the plugin page on TrueNAS Core (not from Nextcloud web GUI), TrueNAS automatically create an automatic snapshot of your plugin jail before the upgrade. The name of this snapshot is something like this:
ioc_update_xxxx-RELEASE-xx_date_time
So, do the upgrade from your plugin page and if it didn't work and your plugin breaks down, first restart the plugin and check it again, if it's still broken then you can use this automatically created snapshot to restore your plugin to the version before the update.
First, find the name of the automatically created snapshot name. Assuming your pool name is "tank
" and your plugin name is "
nextcloud", the command would be:
Code:
zfs list -r -t snapshot -o name,creation tank | grep nextcloud | grep ioc_update | grep -v root
You see a list of all automatically created snapshots before the update. Something like this:
Note: my pool name is "Storage" and my jail name is "nextcloud"
Now looking at my above sample, let's say I want to restore to the latest snapshot before the upgrade which would be the:
ioc_update_13.1-RELEASE-p7_2023-03-02_10-59-23
the restore procedure would be something like this:
Code:
iocage stop "name of your jail"
iocage rollback -f -n "name of the chosen snapshot" "name of your jail"
iocage start "name of your jail"
So back to my above sample, the command would be:
Code:
iocage stop nextcloud
iocage rollback -f -n ioc_update_13.1-RELEASE-p7_2023-03-02_10-59-23 nextcloud
iocage start nextcloud
Again, make sure you are using your jail name and your discovered snapshot name.