How to Manage atvise SCADA live Backups?

Created by Agent Aaron Camacho, Modified on Tue, 23 Jul at 10:08 PM by Agent Aaron Camacho

You can manage backups in atvise® SCADA using either the server database backup live script or the version control functionality.


You can manage backups in Atvise SCADA using either the server database backup script or the version control functionality.


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.


  1. Create a Menu Script: Navigate to Library >>> Project >>> MenuScripts in Atvise Builder.
  2. Create a new menu script
  3. Use server.database.backupMethod:
    • Implement the server.database.backup method in your script.
    • It is recommended to save the backup file with a name that includes the date and time, such as nodes_date_time.db.
  4. Example with Options:
  5. 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
    });

  6. You should get the following result in the atvise server log: 

  7. Parameters: 

    • filename (String, optional, default: "nodes_YYYYMMDD_hhmmss.db"): Specifies the name of the backup file.
    • pages (Integer, optional, default: 10000): Number of database pages copied in one iteration.
    • sleep (Integer, optional, default: 40): Time in milliseconds between iterations.
    • timeout (Integer, optional, default: 300): Time in seconds for the backup to complete.



Using Version Control Functionality


This method involves exporting the project using atvise Builder's version control features.


  1. Create a Backup Folder: Create a folder where you want to save the project version.
  2. Export Project: Go to Atvise Builder Top Menu >>> Version Control >>> Export Project.
    In the pop-up window, click the button with three dots and select the backup folder you created.Click OK to export the project.


Steps to Import Project: (optional)

  1. Go to Version Control: Navigate to Atvise Builder Top Menu >>> Version Control >>> Import Project.
  2. Select the Backup Folder:
    • Click the button with three dots and browse to the folder containing the project backup.
    • Click OK to import the project.


Note


To avoid conflicts, ensure no previous backup is in progress before starting a new one. The backup will return "true" if it can be started successfully.

This knowledge base entry provides a comprehensive guide to managing backups in atvise SCADA, including script-based and version control methods for ensuring data integrity and recovery.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article