Video: How can you modify the number of backups retained in PME?

FA210520

27/05/2020

Issue
A user may want to modify the number of backups retained in PME

Product Line
Power Monitoring Expert 7.2.x
Power Monitoring Expert 8.x
Power Monitoring Expert 9.0
Power Monitoring Expert 2020

Environment
Windows Task Manager

Cause
In PME 7.2 and greater, scheduled tasks have been removed from the ION Database Manager and are now handled by the Windows Task Scheduler which invokes Windows PowerShell files to run the backup. The power shell file itself will need to be modified in order to change the number of backups.

Resolution
*Warning: Take backups of any files prior to modifying them. Ensure the backups are in a location that will not be overwritten (i.e. the Desktop).*

Navigate to the following directory <>\Power Monitoring Expert\config\cfg\DbScheduledTasks (may vary depending on the installation directory) and open the file "Backup.ps1" either with Windows PowerShell or Notepad and edit the code as shown below.
Original Code:



Modified Code:



Save the file to retain the changes.

The following video demonstrates how to perform this configuration.