I'm pretty sure if you google around for a bit, you can find thousands of scripts on how to take a backup on SQL Server.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP