How do you recover an element that was deleted? I assume you use the recycle bin exactly what items from the recycle bin need to be used and where do they go?
Thanks
Hey Jeff,
When an element is deleted, 3 items are added in the Recycle Bin
- <Date>_Delete_element_views.xml.zip
- <Date>ElementConnection before delete <element> ElementConnections.xml.zip
- <Date>_Element <elemenname>.zip
Each of these contain some part to restore the element.
The most important one is the "<Date>_Element <elemenname>.zip" this one contains the actual element. The folder structure is kept intact, so you only need to unzip the file and place the contents of the "Skyline Dataminer" folder from the zip into the "C:\Skyline DataMiner" folder on you system.
The other 2 zip-files are a bit more work.
The "<Date>_Delete_element_views.xml.zip" contains the views.xml as it was the moment the element was deleted. If you do not restore this, the element will place under the root view. If no other changes has been made to the view-structure, then you can simply replace the "C:\Skyline DataMiner\views.xml" with the one from the zip. Otherwise you will have to manually merge the two files.
The "<Date>ElementConnection before delete <element> ElementConnections.xml.zip". Contains a snapshot of the ElementConnections.xml at the time of the delete. As with the views.xml if this is not restored any ElementConnections the element had will be reset to the default or missing. If no changes happened since the Delete you can simply replace the file in "C:\Skyline DataMiner\Elements" with the one from the zip. Otherwise you will have to manually merge the 2 files.
Do note that these actions are best done when the agent is stopped to prevent conflicts. When the agent is part of a cluster you need to be extra careful with the views.xml (as this one is synchronized).
Also do note that this will only restore the element to the system, all saved data the element contained such as trending or elementData will be lost.
I was indeed not clear enough with my answer. The zip does indeed only contain the files and folders relevant to that element. What I meant with “the folder structure is intact” is the data in the zip needs to end up in the same place on your system. The zipSkyline DataminerElements\… Needs to end up in C:Skyline DataMinerElements….
So yes, you just need to make sure that the contents of the Elements folder from the zip ends up in the Elements folder of the system.
Brent, Thanks for the quick response but I have additional question.
1) Your statement of :
“The folder structure is kept intact, so you only need to unzip the file and place the contents of the “Skyline Dataminer” folder from the zip into the “C:Skyline DataMiner” folder on you system
does not appear to be correct or I am misunderstanding it . The contents of the “Skyline DataMiner” folder is NOT “intact” as you stated. The Elements folder in that folder ONLY contains the folder for the element that was deleted and not the entire (“intact”) structure so as you stated. I assume that you meant to say to Copy the contents of the “Elements” folder from the zip file to the Elements folder on the actual system, is that correct?
Thanks