1 = cryptsetup-luksHeaderRestore(8)
3 :manmanual: Maintenance Commands
4 :mansource: cryptsetup {release-version}
5 :man-linkstyle: pass:[blue R < >]
7 :ACTION_LUKSHEADERRESTORE:
11 cryptsetup-luksHeaderRestore - restore a binary backup of the LUKS header and keyslot area
15 *cryptsetup _luksHeaderRestore_ --header-backup-file <file> [<options>] <device>*
19 Restores a binary backup of the LUKS header and keyslot area from the
21 *NOTE:* Using '-' as filename reads the header backup from a file named '-'.
23 *<options>* can be [--header, --header-backup-file, --disable-locks].
25 *WARNING:* Header and keyslots will be replaced, only the passphrases
26 from the backup will work afterward.
28 This command requires that the volume key size and data offset of the
29 LUKS header already on the device and of the header backup match.
30 Alternatively, if there is no LUKS header on the device, the backup will
31 also be written to it.
33 include::man/common_options.adoc[]
34 include::man/common_footer.adoc[]