boot_tiny: add clone script
This commit is contained in:
parent
7449d7344e
commit
7fedae2688
9
clone
Normal file
9
clone
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
sh tiny
|
||||||
|
DEST=l_samenv@samenv:boxes/images
|
||||||
|
IMGDAT=apumaster_$(date +'%Y-%m-%d')
|
||||||
|
read -p "image name to write to $DEST [$IMGDAT]: " IMG
|
||||||
|
if [ -z "$IMG" ]; then
|
||||||
|
IMG=$IMGDAT
|
||||||
|
fi
|
||||||
|
echo "copy image to $DEST/$IMG ..."
|
||||||
|
dd if=/dev/sda bs=512k | lz4 | ssh l_samenv@samenv "dd of=$DEST/$IMG bs=512k"
|
Loading…
x
Reference in New Issue
Block a user