summaryrefslogtreecommitdiffstats
path: root/man/cryptsetup-luksHeaderRestore.8.adoc
blob: e7fa8aa3a5fad7e6343bc25f1add357ba7573a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
= cryptsetup-luksHeaderRestore(8)
:doctype: manpage
:manmanual: Maintenance Commands
:mansource: cryptsetup {release-version}
:man-linkstyle: pass:[blue R < >]
:COMMON_OPTIONS:
:ACTION_LUKSHEADERRESTORE:

== Name

cryptsetup-luksHeaderRestore - restore a binary backup of the LUKS header and keyslot area

== SYNOPSIS

*cryptsetup _luksHeaderRestore_ --header-backup-file <file> [<options>] <device>*

== DESCRIPTION

Restores a binary backup of the LUKS header and keyslot area from the
specified file. +
*NOTE:* Using '-' as filename reads the header backup from a file named '-'.

*<options>* can be [--header, --header-backup-file, --disable-locks].

*WARNING:* Header and keyslots will be replaced, only the passphrases
from the backup will work afterward.

This command requires that the volume key size and data offset of the
LUKS header already on the device and of the header backup match.
Alternatively, if there is no LUKS header on the device, the backup will
also be written to it.

include::man/common_options.adoc[]
include::man/common_footer.adoc[]