It depends. The correct way is:
- take a backup
- set site in maintenance more
- and if the site is small, restore the new version with the new backend from the stage or test site, otherwise if the site is very big substitute the old backend
- take a backup and test
- set site online
Of course there are some factors, like if the users use the backend (e.g. for login), if you can partially can upgrade to the new backend and more