rcopy.conf.sample: The backup script now determines itself whether the backup hard drive is encrypted or not.
This commit is contained in:
parent
f2aab415d0
commit
400d8b728c
@ -86,12 +86,7 @@ backup_partition=
|
||||
disk_identifier=
|
||||
_found=false
|
||||
|
||||
if $crypto_backup_device ; then
|
||||
|
||||
backup_raw_partition=$_backup_partition
|
||||
backup_partition="/dev/mapper/${backup_partition_name}"
|
||||
|
||||
elif $extern_usb_disk || $extern_sata_disk || $intern_disk ; then
|
||||
if $extern_usb_disk || $extern_sata_disk || $intern_disk ; then
|
||||
|
||||
## - In case of unencrypted (and labeled) extern backup disc
|
||||
## -
|
||||
@ -115,10 +110,20 @@ elif $extern_usb_disk || $extern_sata_disk || $intern_disk ; then
|
||||
|
||||
## - Backup device could not be detected, so we will try the (above) given one..
|
||||
## -
|
||||
backup_partition=$_backup_partition
|
||||
backup_raw_partition=$_backup_partition
|
||||
#backup_partition=$_backup_partition
|
||||
|
||||
else
|
||||
backup_partition=/dev/$disk_identifier
|
||||
backup_raw_partition=/dev/$disk_identifier
|
||||
#backup_partition=/dev/$disk_identifier
|
||||
fi
|
||||
|
||||
if $(cryptsetup isLuks $backup_raw_partition) ; then
|
||||
crypto_backup_device=true
|
||||
backup_partition="/dev/mapper/${backup_partition_name}"
|
||||
else
|
||||
crypto_backup_device=false
|
||||
backup_partition=$backup_raw_partition
|
||||
fi
|
||||
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user