mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
57 lines
850 B
Bash
57 lines
850 B
Bash
#!/bin/bash
|
|
|
|
# 2021 Dave Bechtel
|
|
# NOTE VM MUST NOT BE RUNNING
|
|
# This runs on virtualbox host to prep VM for upload
|
|
# REQUIRES: virtualbox, 7zip, md5sum, sha1sum
|
|
|
|
ls -alh
|
|
vbm="VBoxManage" # Virtualbox
|
|
# Shrinkydink rootdisk
|
|
#time $vbm modifymedium --compact test-zfs-21-Draid-sata0-0-roothomeswap.vdi
|
|
time $vbm modifymedium --compact test-zfs-21-Draid-sata0-0.vdi
|
|
ls -alh
|
|
|
|
# Cleanup
|
|
/bin/rm -f Logs/*
|
|
mkdir -pv ~/tmpdel; /bin/mv *~ ~/tmpdel
|
|
|
|
# use 7zip instead
|
|
|
|
dirtobkp="test-zfs-21-Draid--xfs"
|
|
outfile="$dirtobkp.7z"
|
|
|
|
cd ..
|
|
/bin/rm -f $outfile
|
|
|
|
time 7z \
|
|
a \
|
|
-mx=9 \
|
|
-ms=on \
|
|
$outfile \
|
|
$dirtobkp
|
|
|
|
time md5sum -b $outfile > $dirtobkp.md5
|
|
time sha1sum -b $outfile > $dirtobkp.sha1
|
|
cat *.md5 *.sha1
|
|
ls -alh
|
|
|
|
date;
|
|
exit;
|
|
|
|
time rar \
|
|
a \
|
|
-m5 \
|
|
-md4096 \
|
|
-rr1p \
|
|
-ol \
|
|
-ow \
|
|
-o+ \
|
|
-r \
|
|
-tsm \
|
|
-tsc \
|
|
-s \
|
|
-- \
|
|
$outfile \
|
|
$dirtobkp
|