You can manage backups in atvise SCADA using either the server database backup script.
✅Steps
- Using the Server Database Backup Script
- This method involves creating a menu script and using the server.database.backup method to perform live backups of the database.
- Create a Menu Script: Navigate to SYSTEM.LIBRARY.PROJECT.MENUSCRIPTS.NodesBackUpin the Builder:
- Use server.database.backupMethod found unde Help section:
server.database.backup({ filename: "C:/backups/newbackup.db", timeout: 600, sleep: 20 });
- Example with Options for live backUps using a interval parameter:
var date = new Date(); var year = date.getFullYear(); var monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; var month = monthNames[date.getMonth()]; var day = ("0" + date.getDate()).slice(-2); var hours = ("0" + date.getHours()).slice(-2); var minutes = ("0" + date.getMinutes()).slice(-2); var seconds = ("0" + date.getSeconds()).slice(-2); var filename = "nodes_" + day + "_" + month + "_" + year + "_" + hours + "_" + minutes + "_" + seconds + ".db"; server.database.backup({ filename: "C:\\atvise_Backups\\"+filename, timeout: 600, sleep: 20 });
You should get the following result in the atvise server log:
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article