Deleting Archive from Target
-
Hi All,
Sorry if this has been asked before, I have searched and didn't find anything.
How do you delete archived (from TRND) data from the target device? Can it be deleted when you load a new configuration?
Cheers
Mike
-
Hi Mike,
thanks for your question.
There is only one way how to delete the archived data - just delete the files/folders on the target device.
Following line will delete all the archived data:sudo rm -rf /rex/arc/
Hope it helps.
Regards,
Tomas -
Perfect, thank you Tomas. Can the command be run via a block?
-
Sure Have a look at function block called EPC - https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/EPC.html#x265-26400015
For details on how to use the EPC function block, head to example on MP3 Playback: https://www.rexygen.com/example-projects/0304_External_Programs/0304-02_MP3_Playback/0304-02_MP3_Playback.html
Cheers,
Tomas -
Thank you Tomas,
If I use the block to run the command to delete the archive. Can this be done while the process is running, will REX create a new file straight away? Or should I reboot once the file is deleted?
Cheers
Mike
-
Update! I have tried this and it seems you can run the command while the execution is running. But for a new archive file to be created you need to reboot.
-
Hi Mike,
thanks for update on this. The reboot isn't necessary. The file should be created also when:
- new write of archived items is performed to the disk with specified period
- swapping executives
- when AFLUSH is triggered - see: https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/AFLUSH.html
Let me know if it work for you.
Cheers,
Tomas -
Hi Tomas,
Thank you for the reply
Rebooting, swapping executive and AFLUSH work fine, new data being written to the disk in time period does not work though.
Cheers
Mike