< Back

Backup-PrtgConfig

Sun Jan 19, 2020 5:40 pm

NAME Backup-PrtgConfig



SYNOPSIS

Requests a PRTG Network Monitor server create a backup of its configuration database.





SYNTAX

Backup-PrtgConfig [<CommonParameters>]





DESCRIPTION

The Backup-PrtgConfig cmdlet requests a PRTG Network Monitor server create a backup of its configuration database

after first writing the current running configuration to disk. Configuration backups are stored under the

Configuration Auto-Backups folder, by default located at C:\\ProgramData\\Paessler\\PRTG Network

Monitor\\Configuration Auto-Backups



When this cmdlet is executed, PRTG will asynchronously start creating a configuration backup. As such, this cmdlet

will return before the backup has completed. Depending on the size of your configuration database, this may take

several seconds to complete. In order to guarantee a backup has been successfully completed, it is recommended to

probe the contents of the Configuration Auto-Backups folder before and after running this script, to identify the

backup file that was created as a result of running this cmdlet. The created backup can also be identified by

parsing the DateTime timestamp in the created filename, typically "PRTG Configuration (Snapshot yyyy-MM-dd

HH-mm-ss)"





PARAMETERS

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



---------- EXAMPLE 1 ----------



C:\\> Backup-PrtgConfig



Trigger a backup of the PRTG Configuration Database.



RELATED LINKS

Online version: https://github.com/lordmilko/PrtgAPI/wi ... database-1