diff --git a/Commands.md b/Commands.md index d6a732d..21adb3f 100644 --- a/Commands.md +++ b/Commands.md @@ -3,7 +3,27 @@ copy image ```bash byobu -imgname=`date +"%Y-%m-%d-%H%M-%S"`-grandfatherclock-pi4.img; xzname=$imgname.xz; dadisk=/dev/sdb; webhook "starting copy $dadisk to $imgname to $xzname"; sudo dd if=$dadisk of=$imgname bs=4M status=progress; webhook "Copied the disk to $imgname, compressing to $xzname"; sudo pishrink.sh -v -Z -a $imgname $xzname; webhook "$imgname shrunk to $xzname, deleting $imgname" true; # sudo rm -f $imgname; webhook "done!" true; sudo shutdown -r +1 +imgname=`date +"%Y-%m-%d-%H%M-%S"`-grandfatherclock-pi4.img +xzname=$imgname.xz +dadisk=/dev/sdb + +webhook "starting copy $dadisk to $imgname to $xzname" +sudo dd if=$dadisk of=$imgname bs=4M status=progress + +webhook "Copied the disk to $imgname, compressing to $xzname" +sudo pishrink.sh -v -Z -a $imgname + +webhook "$imgname shrunk to $xzname, calculating sha256 checksums..." true +sha256sum $imgname | tee sha256sum-$imgname.txt +sha256sum $imgname | tee -a sha256sum-$xzname.txt + +webhook "getting sizes" +du -h $imgname | tee sizes-$imgname-$xzame.txt +du -h $xzname | tee -a sizes-$imgname-$xzame.txt + +# sudo rm -f $imgname +webhook "done!" true +# sudo shutdown -r +1 ``` watch file diff --git a/notes-scratch.txt b/notes-scratch.txt index e69de29..d18aec6 100644 --- a/notes-scratch.txt +++ b/notes-scratch.txt @@ -0,0 +1,3 @@ +grandfather:grandfather123abc + +ssh grandfather@grandfatherclock \ No newline at end of file