<< Click to Display Table of Contents >> Manual > Monitoring system construction guide > Server logic construction > Back up the specified folder (File backup) |
overview
Here we will explain a sample that backs up a specified folder to another folder.
You can also perform backups using the File operation action, but the backup action can also delete the destination file if the source file is deleted, allowing you to synchronize the contents of the source and destination folders.
Action used: File backup action
Download the sample
The creation examples shown on this page are provided with samples.
The sample can be downloaded from below.
Operation check
Load the sample server configuration file from FA-Server and bring the application online (yellow arrow).
After going online, write TRUE to U01.F01.T01 and verify that the files have been backed up in the backup destination folder.
Setup Procedure
Tag configuration
1.Set tags.
Tag Name |
address |
the purpose |
---|---|---|
U01.F01.T01 |
X0000 |
A tag that triggers an action |
Action Settings
1.File backupRegister action "A01".
2.Configure the action properties.
Open the properties of the
A01 action and configure the settings from the Backup Settings tab.
In this sample, the contents of the "ORIGINAL" folder will be backed up to the "BACKUP" folder.
•Backup source folder: ORIGINAL
•Backup destination folder: BACKUP
Event Settings
1.Create a Tag event to perform the action.
In this example, we will set the event to occur when U01.F01.T01 becomes TRUE.
Set the execution action to "A01".