Recover important data after reinstallation
Good evening,
I've been to quick to jump the re-install path of my server, and with doing so lost important data to be able to reach my borgbackup repository as the key is lost due to my trigger finger.
I'm aware at creation I've been told to secure it and I'm learning to hard way to read carefully.
I'm therefor asking for some guidance on how to recover a specific path, which is:
/root/.config/borg/
├── keys
│ └── uNNNNNN_your_backup_de__backups_server
└── security
└── a6e7fafb6a9558572108a77c2ef83095b80410c467e2e41fbb63c87b61b68338
├── key-type
├── location
├── manifest-timestamp
├── nonce
└── tam_required
I specifically need the data in /root/.config/borg/ to be recovered if possible.
Most essential is /root/.config/borg/keys/uNNNNNN_your_backup_de__backups_server
I've launched Hetzner Rescue System but as I'm not familiar what to do, I'd like to do the best I could, with help of others that have probably been in the same ( sinking ) ship before.
A lot of the tools specifically search for known file extensions, but my file /root/.config/borg/keys/uNNNNNN_your_backup_de__backups_server doesn't have a extension, so far I haven't had any luck with recovering it.
So what's the best and/or most effective way of trying to restore this? I'm looking for the right tools, and the rights commands to do this.
Posted Dec 2, 2023, 7:21 PM UTC
I think it's safe to say that after reading this 99% of the people here haven't got the foggiest idea what you're on about.
What does this mean? You reinstalled some OS? Which OS? What file system? Was drive formatted during this?
Thanks for your quick reply.
I've tried my best to explain, but might be a bit caught up with the dread feeling of having lost important data. Which causes me to quickly write things down, that sound logical to me 😅
I've reinstalled the machine with Ubuntu 22.04, previous OS was Ubuntu 20.04 Filesystem is ext4 and both drives, which are a raid1, were formatted.
Hopefully that clears things up.
Thanks for your quick reply.
I've tried my best to explain, but might be a bit caught up with the dread feeling of having lost important data. Which causes me to quickly write things down, that sound logical to me 😅
I've reinstalled the machine with Ubuntu 22.04, previous OS was Ubuntu 20.04 Filesystem is ext4 and both drives, which are a raid1, were formatted.
Hopefully that clears things up.
Nope still as clear as mud.
I do however get the impression you're trying to recover deleted data from your raid which looks to have been on 2 nvme drives. If that's the case then you're out of luck as trim and garbage collection will have ensured there's nothing left for you to recover.
My sincere excuse that's it's still not (fully) clear.
The data is indeed on 2 nvme's that were, and are again paired as raid1
I've never thought of trim (and garbage collection), but it makes sense, thanks for pointing that out.