Forum Discussion

KimTutein's avatar
KimTutein
Icon for Advocate III rankAdvocate III
1 year ago
Solved

Backup data in Lakehouse and warehouse

Hi community   I have an internal audit asking us “what will you do if hackers take over our workspace” and we cannot get to it. We thought that for our lakehouse we might backup our tables and fi...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi KimTutein ,

     

    Thanks for the update, that's a really useful discovery. You're right about the _metadata folder. It's used by some systems to store extra info, but it's not needed for Spark to read Delta tables as long as the _delta_log and data files are there. So excluding it makes sense, and it's great to hear that copying the tables without it worked for you. Your idea of doing a quick restore of the tables and then slowly rebuilding the metadata using Spark (by reading and writing the tables) is a smart way to handle a disaster recovery. It gives you fast access to the data while allowing you to fix the table metadata over time. We think your approach is practical and aligns well with how Delta Lake is designed to work. Thanks for sharing , we’ll consider including this in our internal recovery strategy as well.
     

    It looks like your problem has been solved, please mark the helpful reply and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster .

    Thank you very much for your kind cooperation!

     

    Please don't forget to give a "Kudos " – I’d truly appreciate it!

     

    Regards,

    B Manikanteswara Reddy