Backup installation problem?

So, how can I adapt and write this as code? Can you write it as an example?

I’m new to installation, I have very little background, sorry for my meaningless answers.