Hi, So I've been trying to figure out a way to stream line an option for our daily scheduled tasks, emailing on a failure kind of works, but it looks like the the logfile is inherited by next task if the initial task is running (Some of our tasks can run for an hour or three)
So is there then an option to created a "Daily Report" that can indicate if the scheduled tasks ran successfully and where there are errors, listed within the email.
E.G
Task1: Completed
2024-04-22 10:33:27 Backing up the task "Task1"
2024-04-22 10:33:32 ** Processed files: 2571. Backed up files: 670. Created folders: 0. Backup size: 54870 bytes. **
2024-04-22 10:33:32 ** Number of errors: 0. Time elapsed: 0 hours, 40 minutes, 5 seconds. **
Task2: Completed
2024-04-22 11:33:27 Backing up the task "Task2"
2024-04-22 11:33:32 ** Processed files: 2441. Backed up files: 40. Created folders: 0. Backup size: 6540 bytes. **
2024-04-22 11:33:32 ** Number of errors: 0. Time elapsed: 0 hours, 10 minutes, 5 seconds. **
Task3: Failed
2024-04-22 12:33:27 Backing up the task "Task3"
2024-04-22 12:33:32 The directory "\\mpaftac03\MPAFTAC03" cannot be found.
2024-04-22 12:33:32 ** Processed files: 0. Backed up files: 0. Created folders: 0. Backup size: 0 bytes. **
2024-04-22 12:33:32 ** Number of errors: 1. Time elapsed: 0 hours, 0 minutes, 0 seconds. **
So is there then an option to created a "Daily Report" that can indicate if the scheduled tasks ran successfully and where there are errors, listed within the email.
E.G
Task1: Completed
2024-04-22 10:33:27 Backing up the task "Task1"
2024-04-22 10:33:32 ** Processed files: 2571. Backed up files: 670. Created folders: 0. Backup size: 54870 bytes. **
2024-04-22 10:33:32 ** Number of errors: 0. Time elapsed: 0 hours, 40 minutes, 5 seconds. **
Task2: Completed
2024-04-22 11:33:27 Backing up the task "Task2"
2024-04-22 11:33:32 ** Processed files: 2441. Backed up files: 40. Created folders: 0. Backup size: 6540 bytes. **
2024-04-22 11:33:32 ** Number of errors: 0. Time elapsed: 0 hours, 10 minutes, 5 seconds. **
Task3: Failed
2024-04-22 12:33:27 Backing up the task "Task3"
2024-04-22 12:33:32 The directory "\\mpaftac03\MPAFTAC03" cannot be found.
2024-04-22 12:33:32 ** Processed files: 0. Backed up files: 0. Created folders: 0. Backup size: 0 bytes. **
2024-04-22 12:33:32 ** Number of errors: 1. Time elapsed: 0 hours, 0 minutes, 0 seconds. **
Statistics: Posted by Boonew — 06 May 2024, 12:24