For fleets of HMIs, manual USB backup is impractical. Using MCGS’s built-in !Backup() script function:
!Backup("\\StorageCard\\auto_backup\\", 1) -- 1 = include logs
!FTPUpload("\\StorageCard\\auto_backup\\", "192.168.1.100", "user", "pass", "/backup/")
Call this script every night at 02:00 using the HMI’s Timer object. The backup will be compressed into a zip file named with the date. mcgs hmi backup
MCGS stores embedded databases (.mdb or SQLite) in the \MCGS\Data\ directory. If you backup while the HMI is writing to these files, you get a corrupt backup. For fleets of HMIs, manual USB backup is impractical
The Rule of Thumb:
To transform "backup" from a chore into a reliable safety net, follow these rules: Call this script every night at 02:00 using
Warning: Restoration erases all current runtime data. First perform a new backup if possible.