Have done this at least 4 times myself with out any loss. 3x with sand 1x switched to bare bottom.
I put live stock and rocks carefully onto buckets with original tank water.
Likely un necessary but to stabilize ph and o2 have a bubbler I switch between buckets
Then drain rest of water and reserve.
Remove the sand and wash it thoroughly wit the reserved saltwater or other saltwater.
Perhaps unnecessary but preserved some of the sand. About a liter to save micro fauna un washed.
Once runs clean. Put the sand in the new tank.
Putting the reserved sand on top.
Then add some fresh water.
Add rocks and corals.
Add most of water with fishes into the tank. This gets the water in the tank to similar parameters.If moving to a large new tank would acclimated fish to new water.
Add the fish and inverts.
Let settle a bit and add fresh saltwater. top off to correct level.
Do a 20% water change the next day.
Don't add any thing new for at least a week.
Enjoy.
This is my approach surely there are many other good approaches.
Also it makes a mess. Ensure you have time and roommate / spousal approval.