I wrote a ready-made script template with the following functions:
- Each command is checked for errors;
- If errors occur during operation, the script breaks, the stopped services will be started services back, then UrBackup backup is not started (Backup had an early error. Deleting partial backup);
- All events are included in the UrBackup log;
- Errors are logged in more detail;