4 Haziran 2023 Pazar

Recovering Data From An Old Encrypted Time Machine Backup

Recovering data from a backup should be an easy thing to do. At least this is what you expect. Yesterday I had a problem which should have been easy to solve, but it was not. I hope this blog post can help others who face the same problem.


The problem

1. I had an encrypted Time Machine backup which was not used for months
2. This backup was not on an official Apple Time Capsule or on a USB HDD, but on a WD MyCloud NAS
3. I needed files from this backup
4. After running out of time I only had SSH access to the macOS, no GUI

The struggle

By default, Time Machine is one of the best and easiest backup solution I have seen. As long as you stick to the default use case, where you have one active backup disk, life is pink and happy. But this was not my case.

As always, I started to Google what shall I do. One of the first options recommended that I add the backup disk to Time Machine, and it will automagically show the backup snapshots from the old backup. Instead of this, it did not show the old snapshots but started to create a new backup. Panic button has been pressed, backup canceled, back to Google.


Other tutorials recommend to click on the Time Machine icon and pressing alt (Option) key, where I can choose "Browse other backup disks". But this did not list the old Time Machine backup. It did list the backup when selecting disks in Time Machine preferences, but I already tried and failed that way.


YAT (yet another tutorial) recommended to SSH into the NAS, and browse the backup disk, as it is just a simple directory where I can see all the files. But all the files inside where just a bunch of nonsense, no real directory structure.

YAT (yet another tutorial) recommended that I can just easily browse the content of the backup from the Finder by double-clicking on the sparse bundle file. After clicking on it, I can see the disk image on the left part of the Finder, attached as a new disk.
Well, this is true, but because of some bug, when you connect to the Time Capsule, you don't see the sparse bundle file. And I got inconsistent results, for the WD NAS, double-clicking on the sparse bundle did nothing. For the Time Capsule, it did work.
At this point, I had to leave the location where the backup was present, and I only had remote SSH access. You know, if you can't solve a problem, let's complicate things by restrict yourself in solutions.

Finally, I tried to check out some data forensics blogs, and besides some expensive tools, I could find the solution.

The solution

Finally, a blog post provided the real solution - hdiutil.
The best part of hdiutil is that you can provide the read-only flag to it. This can be very awesome when it comes to forensics acquisition.


To mount any NAS via SMB:
mount_smbfs afp://<username>@<NAS_IP>/<Share_for_backup> /<mountpoint>

To mount a Time Capsule share via AFP:
mount_afp afp://any_username:password@<Time_Capsule_IP>/<Share_for_backup> /<mountpoint>

And finally this command should do the job:
hdiutil attach test.sparsebundle -readonly

It is nice that you can provide read-only parameter.

If the backup was encrypted and you don't want to provide the password in a password prompt, use the following:
printf '%s' 'CorrectHorseBatteryStaple' | hdiutil attach test.sparsebundle -stdinpass -readonly

Note: if you receive the error "resource temporarily unavailable", probably another machine is backing up to the device

And now, you can find your backup disk under /Volumes. Happy restoring!

Probably it would have been quicker to either enable the remote GUI, or to physically travel to the system and login locally, but that would spoil the fun.More info
  1. Pentest Tools For Windows
  2. Hacker Tools Windows
  3. Hacking Tools Windows
  4. Hak5 Tools
  5. Hacker Tools Free
  6. Hack Tools Github
  7. Pentest Tools Bluekeep
  8. World No 1 Hacker Software
  9. Install Pentest Tools Ubuntu
  10. Hacking Tools Windows
  11. World No 1 Hacker Software
  12. Hacker Techniques Tools And Incident Handling
  13. Hacking Tools Kit
  14. Hack Tools Pc
  15. Pentest Tools For Windows
  16. Pentest Tools For Mac
  17. Hacker Tools 2019
  18. How To Install Pentest Tools In Ubuntu
  19. Hacking Tools For Pc
  20. Hack Apps
  21. Pentest Tools Linux
  22. Pentest Tools Bluekeep
  23. Hacking Tools For Mac
  24. Hacker Tools For Pc
  25. Hacker Tool Kit
  26. Pentest Tools Github
  27. Hack Tools
  28. Hak5 Tools
  29. How To Make Hacking Tools
  30. Hak5 Tools
  31. How To Hack
  32. New Hacker Tools
  33. Hacker Tools Software
  34. Hacker Tools Apk Download
  35. Hack Tools
  36. Hacker Tools
  37. Hack Tools 2019
  38. Pentest Tools Online
  39. Hacking Tools Usb
  40. Hacker Tools For Ios
  41. How To Hack
  42. Pentest Tools Alternative
  43. Hacker Tools For Mac
  44. Hack Tools
  45. Pentest Tools List
  46. How To Make Hacking Tools
  47. Hacking Tools Pc
  48. Hacker Security Tools
  49. Hacker Search Tools
  50. Hack App
  51. Pentest Tools Apk
  52. Pentest Tools List
  53. Hacker
  54. Hacker Tools Linux
  55. Hacking Tools For Windows
  56. Hack Tools For Ubuntu
  57. Hak5 Tools
  58. Hackrf Tools
  59. Hack Tools 2019
  60. Nsa Hack Tools Download
  61. Hacking Tools Windows
  62. Hacker Tools Github
  63. Pentest Tools Bluekeep
  64. What Are Hacking Tools
  65. Hacker Tools List
  66. Hacking Apps
  67. Hacking Tools Usb
  68. Hack Tools Download
  69. How To Make Hacking Tools
  70. Easy Hack Tools
  71. Hacking Apps
  72. Best Hacking Tools 2019
  73. Hacking Tools And Software
  74. Hacking Tools Name
  75. Pentest Recon Tools
  76. Hacker Tools 2019
  77. What Are Hacking Tools
  78. Best Hacking Tools 2019
  79. Hacking Tools Mac
  80. Hack Tools For Ubuntu
  81. Hacking Tools For Games
  82. Hacking Tools Usb
  83. How To Make Hacking Tools
  84. Pentest Tools Github
  85. Pentest Automation Tools
  86. Hacking Tools For Beginners
  87. Hacker Tools For Ios
  88. Pentest Tools For Android
  89. Pentest Tools Linux
  90. Tools Used For Hacking
  91. Kik Hack Tools
  92. Nsa Hack Tools Download
  93. Hacker Tools Linux
  94. Hack Tools Github
  95. New Hack Tools
  96. Hacker Tools Apk Download
  97. Install Pentest Tools Ubuntu
  98. New Hacker Tools
  99. Hacking Tools Github
  100. Hacker Tools Hardware
  101. Hacker Tools Apk
  102. Pentest Tools Kali Linux
  103. Hacker Tools Free Download
  104. Hack Tools 2019
  105. Termux Hacking Tools 2019
  106. Hacking Tools And Software
  107. Hacker Tools Linux
  108. What Is Hacking Tools
  109. Hacking Tools Online
  110. Hack Tool Apk
  111. Hacker
  112. Pentest Tools Free
  113. Hacking Tools Windows
  114. Hacking Tools
  115. Hacking Tools For Windows 7
  116. Hacking Tools For Beginners
  117. Hacker
  118. Hacker Tools Online
  119. Pentest Tools Windows
  120. Pentest Reporting Tools
  121. Pentest Tools Website
  122. New Hack Tools
  123. Hack Tools For Ubuntu
  124. Top Pentest Tools
  125. Hacking Tools Name
  126. Tools For Hacker
  127. Hacker Tools Windows
  128. Hacking Tools For Pc
  129. Hak5 Tools
  130. Hacker Tools Software
  131. Hackers Toolbox
  132. Hacking Tools For Windows Free Download
  133. Pentest Tools Android
  134. Free Pentest Tools For Windows
  135. Nsa Hacker Tools
  136. Hacker Tools Mac
  137. Hack Tools For Windows
  138. Pentest Tools For Android
  139. Nsa Hacker Tools
  140. Pentest Tools Windows
  141. Hacker Tools For Pc
  142. Pentest Recon Tools
  143. Hacking Tools Software
  144. Hacker Tools For Mac
  145. Termux Hacking Tools 2019
  146. Pentest Tools Url Fuzzer
  147. Hacking App
  148. Hacker Tools Free
  149. Hacking Tools For Windows Free Download
  150. Hack Tools Pc
  151. Pentest Tools Framework
  152. World No 1 Hacker Software
  153. Hacking Tools Github
  154. Nsa Hack Tools
  155. Wifi Hacker Tools For Windows
  156. Game Hacking

Hiç yorum yok:

Yorum Gönder