3 Commits
2.01 ... 2.03

Author SHA1 Message Date
Olli Graf
21e3ee8d74 sha256sum liest von stdout. 2024-11-09 09:57:09 +01:00
Olli Graf
d1d4d01eb6 status=progress bei dd gesetzt. 2024-11-08 09:35:19 +01:00
Olli Graf
09e4e1c8fe Blocksize wieder auf 8M erhöht. 2024-11-04 08:32:59 +01:00

View File

@@ -2,7 +2,7 @@
BACKUP_REPO="/tank/Backup-Repo" BACKUP_REPO="/tank/Backup-Repo"
TEMP_DIR="${HOME}/backup" TEMP_DIR="${HOME}/backup"
VERSION="2.01" VERSION="2.03"
CMD_COMPRESS='pbzip2' CMD_COMPRESS='pbzip2'
verbose=false verbose=false
testmode=false testmode=false
@@ -37,10 +37,11 @@ tdate=$(date '+%y-%m-%d')
function start_backup { function start_backup {
echo "starting Backup" echo "starting Backup"
sudo dd if=${DEVICE} bs=4M | tee ${FILE} | sha256sum > ${TEMP_DIR}/sdcard.sha256 sudo dd if=${DEVICE} status=progress bs=8M | tee ${FILE} | sha256sum > ${TEMP_DIR}/sdcard.sha256
echo "validating the image..." echo "validating the image..."
sha256sum -c ${TEMP_DIR}/sdcard.sha256 <${FILE}
echo "compressing image with ${CMD_COMPRESS}" echo "compressing image with ${CMD_COMPRESS}"
${CMD_COMPRESS} ${FILE} ${CMD_COMPRESS} ${FILE}