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 sync
|
||||
sudo pv -tpreb $device | dd bs=4M | pixz > $dest_file
|
||||
sudo sync
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ if [[ ! -f $source_file ]]; then
|
|||
fi
|
||||
|
||||
device=$2
|
||||
timestamp=`date +%Y%m%d`
|
||||
|
||||
echo "about to restore $source_file onto $device"
|
||||
echo "ctrl-c or [enter]"
|
||||
|
|
Loading…
Reference in a new issue