view backup-luks-headers.pl @ 25:a3e87a2741d4

rename.
author Robert McIntyre <rlm@mit.edu>
date Thu, 29 Jan 2015 20:49:00 -0800
parents 75db8d48c313
children
line wrap: on
line source
1 #!/bin/perl
5 sub backup {
6 my $uuid = shift;
7 my @command =
8 ("cryptsetup", "luksHeaderBackup", "--header-backup-file",
9 "./$uuid.luksHeader", "/dev/disk/by-uuid/$uuid");
10 print("@command\n");
11 system(@command);
12 }
14 # TODO -- find all luks drives and do this automatically.
16 &backup("fd14a1d5-ece0-43c4-a3c5-eb93af261cb5");
17 &backup("23d75d33-611b-424b-810a-099aef0bdd57");
18 &backup("8543575b-25cc-4132-88ef-39af98f646ae");
19 &backup("da9b2d38-bb64-459f-b1c8-480b790a2a50");