Backup on version upgrade

I need to update GVM from 21.4.5 to 22.4.2. How to restore settings?