Here's a guide to automating Testnet data to make recovery easier:
https://developers.stellar.org/docs/build/guides/basics/automate-reset-data
You can find more info (including Testnet reset dates for the year) here:
https://developers.stellar.org/docs/learn/fundamentals/networks#testnet-and-futurenet-data-reset