I have been using LUKS under Linux for a while and now I am starting to learn geli to encrypt my disks with FreeBSD. As recommended e.g. in this article in Section Backup and Restore a LUKS Header, I always store a backup of a LUKS volume header in a file in case the header of a LUKS volume gets damaged.
I was looking for a similar functionality in geli and I found the command
So my question is: does the geli volume metadata play the same role as the LUKS volume header?
If so, I would make a backup of the metadata for each geli volume and restore it in case part of the volume gets overwritten.
Of course, I might not be able to access all the data if any data sectors in the volume have been overwritten as well, but I should at least be able to attach the volume / provider.
Is this correct?
I was looking for a similar functionality in geli and I found the command
geli backup
in the documentation. The man page says:backup Backup metadata from the given provider to the given file.
So my question is: does the geli volume metadata play the same role as the LUKS volume header?
If so, I would make a backup of the metadata for each geli volume and restore it in case part of the volume gets overwritten.
Of course, I might not be able to access all the data if any data sectors in the volume have been overwritten as well, but I should at least be able to attach the volume / provider.
Is this correct?