Looking for suggestions regarding pseudo backup/restore method.
Greetings fellow coders! I designed a web page for work to store common issue:resolution pairs as key:value pairs in the browser local storage. Now im trying to find a viable method to backup the data pairs to an external file that can then be restored in the case of data loss. I found some javascript that takes a textarea value and saves it to a .txt file and can unpack a .txt file to the same text area. I have added code to populate the text area with `localStorage.setItem('${key}', ${value})` with the saved pairs, for each pair in storage. I was trying to find a way to assign the new textarea.value in a way that it would run the setItem actions to reassign the keys. I have also put some thought into making arrays for keys and values. Any ideas or input are greatly appreciated! Both pages are saved and shared under my code, for reference