BackupRestore
(FB)
FUNCTION_BLOCK BackupRestore EXTENDS BACnet.BACnetServerPluginBase IMPLEMENTS CmpEventMgr.ICmpEventCallback, BACnet.IBACnetEventConsumer
Default implementation for ReinitializeDevice service application hook including handling for backup/restore.
Requires a BACnet file object (the backup-restore-object) in Init(). Requests for ReinitializeDevice to REINIT_COLDSTART or REINIT_WARMSTART doesnt stop/start the application nor the whole PLC, because this is not appropriate for all use cases. You can configure, if client created objects should be restored or not.
Restore ignores: - backup files created for a different device-ID - server objects in the restore file, but not in the application - if configured: client created objects
Configure your BackupFilePath, BackupFailTime, Password and RestoreClientCreatedObjects as needed.
Additionally requirements: - a BACnet file object, to be used as backup-restore-file. - dont mix this default implementation with the more simplistic ReinitDevice_SvcAppHook, use just one of both
Needs to be called cyclically to ensure processing of timed actions.
Properties:
BackupFailTime
BackupFilePath
Name
NumHooks
Password
RestoreClientCreatedObjects
TimeZone
UpdateTimeZoneFromSystem
Methods:
DumpDataBase
GetTimeZoneFromSystem
Restore
Structure:
BackupRestore.BackupFailTime
(PROP)BackupRestore.BackupFilePath
(PROP)BackupRestore.DumpDataBase
(METH)BackupRestore.GetTimeZoneFromSystem
(METH)BackupRestore.Name
(PROP)BackupRestore.NumHooks
(PROP)BackupRestore.Password
(PROP)BackupRestore.Restore
(METH)BackupRestore.RestoreClientCreatedObjects
(PROP)BackupRestore.TimeZone
(PROP)BackupRestore.UpdateTimeZoneFromSystem
(PROP)