Fix zzz_evobackup for fdisk command
This commit is contained in:
parent
35f3434237
commit
e2156ad41a
|
@ -255,7 +255,7 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
|
||||||
disks=$(lsblk -l | grep disk | awk '{print $1}')
|
disks=$(lsblk -l | grep disk | awk '{print $1}')
|
||||||
for disk in ${disks}; do
|
for disk in ${disks}; do
|
||||||
dd if="/dev/${disk}" of="${LOCAL_BACKUP_DIR}/MBR-${disk}" bs=512 count=1 2>&1 | grep -Ev "(records in|records out|512 bytes)"
|
dd if="/dev/${disk}" of="${LOCAL_BACKUP_DIR}/MBR-${disk}" bs=512 count=1 2>&1 | grep -Ev "(records in|records out|512 bytes)"
|
||||||
fdisk -l "/disk/${disk}" > "${LOCAL_BACKUP_DIR}/partitions-${disk}"
|
fdisk -l "/dev/${disk}" > "${LOCAL_BACKUP_DIR}/partitions-${disk}"
|
||||||
done
|
done
|
||||||
cat ${LOCAL_BACKUP_DIR}/partitions-* > ${LOCAL_BACKUP_DIR}/partitions
|
cat ${LOCAL_BACKUP_DIR}/partitions-* > ${LOCAL_BACKUP_DIR}/partitions
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue