Do I need to backup the files in
/opt directory when upgrading Solaris 11 to Solaris 11.3? The upgrade can be done by
pkg update --accept like it is described here.
As a best practice always do a full backup before an OS upgrade. Although with Solaris 11 it is pretty straightforward and so far I have not experience issues, we never know.
Please remember that when you update your Solaris 11.x it creates a new boot environment; at any given time, you can activate your previous boot environment and return to the previous OS version.
beadm active <be_name>
Please ensure that you have enough disk space and remember to destroy the previous boot environment once you are sure that the new version did/is not causing any issues.
If you wish to see the changes to the system before patching, you can also do:
pkg update -nv --accept 2>&1 |tee pkg_update.log
This will run a dry-run verbose update and log it to the file. You can then check the file for changes on the packages and script to use
pkg contents and filter by
/opt, it will be a bit of overkill but doable.