Change 7z
parent
76988570a7
commit
bbf7e01939
|
|
@ -31,7 +31,7 @@ while IFS= read -r line
|
||||||
HDD=HDD_2_2
|
HDD=HDD_2_2
|
||||||
fi
|
fi
|
||||||
rm -r /mnt/$HDD/restore/$storage/$remove_date
|
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 )
|
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
|
echo $id
|
||||||
name=$(cat $id/qemu-server.conf | grep name | awk -F ': ' '{print $2}')
|
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
|
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)
|
qm destroy $(basename $id)
|
||||||
echo "---------------- Endtime: $(date +'%Y-%m-%d %H:%M:%S') -------------------------" >> /root/Scripte/7z_restore_$lastdate.log
|
echo "---------------- Endtime: $(date +'%Y-%m-%d %H:%M:%S') -------------------------" >> /root/Scripte/7z_restore_$lastdate.log
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue