minor cleanup to backup/restore scripts for devices
This commit is contained in:
parent
93b2dc85a6
commit
07153e1f1f
2 changed files with 1 additions and 1 deletions
|
@ -17,6 +17,7 @@ read
|
||||||
sudo umount $device?
|
sudo umount $device?
|
||||||
sudo umount $device
|
sudo umount $device
|
||||||
|
|
||||||
|
sudo sync
|
||||||
sudo pv -tpreb $device | dd bs=4M | pixz > $dest_file
|
sudo pv -tpreb $device | dd bs=4M | pixz > $dest_file
|
||||||
sudo sync
|
sudo sync
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@ if [[ ! -f $source_file ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
device=$2
|
device=$2
|
||||||
timestamp=`date +%Y%m%d`
|
|
||||||
|
|
||||||
echo "about to restore $source_file onto $device"
|
echo "about to restore $source_file onto $device"
|
||||||
echo "ctrl-c or [enter]"
|
echo "ctrl-c or [enter]"
|
||||||
|
|
Loading…
Reference in a new issue