This script performs a Full Backup for all components (as mentioned below) of SharePoint Farm except Web Applications.
Components which would be backed up:
- Farm Solutions
- InfoPath Forms Services
- SharePoint Server State Service / SharePoint Server State Service Proxy
- Microsoft SharePoint Foundation User Code
- Global Search Settings
- Application Registry Service
- Farm Shared Services
- Service Applications / Service Applications Proxies
In a real world, customers would like to have an ability to backup entire SharePoint farm except web applications as web applications could be backed up separately or using other backup utilities like DPM etc.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery