Hi,
Azure Web Apps backup, backups the content of your web site not your settings. Environment variables are settings. If you want to have some backup on your environment variables I would suggest to deploy your web Apps via IaC and keep the configuration for your IaC deployment on Git.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.