Change 7z

This commit is contained in:
2025-01-17 18:25:56 +01:00
parent 76988570a7
commit bbf7e01939
+2 -2
View File
@@ -31,7 +31,7 @@ while IFS= read -r line
HDD=HDD_2_2
fi
rm -r /mnt/$HDD/restore/$storage/$remove_date
mkdir -p /mnt/$HDD/restore/$storage/$lastdate/
mkdir -p /mnt/$HDD/restore/$storage/$lastdate
image=$(pvesm list $storage | grep $(date +"%Y-%m-%d" -d "1 day ago")| cut -d ' ' -f1 )
@@ -90,7 +90,7 @@ while IFS= read -r line
echo $id
name=$(cat $id/qemu-server.conf | grep name | awk -F ': ' '{print $2}')
echo "---------------- Starttime: $(date +'%Y-%m-%d %H:%M:%S') -------------------------" >> /root/Scripte/7z_restore_$lastdate.log
7z a -mmt=on -mfb=48048 -mx=1 -p$passwort /mnt/$HDD/restore/$storage/$lastdate/"$name".7z $id/* >> /root/Scripte/7z_restore_$lastdate.log
7z a -mmt=on -mfb=48048 -mx=1 -md=256m -p$passwort /mnt/$HDD/restore/$storage/$lastdate/"$name".7z $id/* >> /root/Scripte/7z_restore_$lastdate.log
qm destroy $(basename $id)
echo "---------------- Endtime: $(date +'%Y-%m-%d %H:%M:%S') -------------------------" >> /root/Scripte/7z_restore_$lastdate.log
done