Skip to content

Commit

Permalink
Update Cheet_Sheet.sh
Browse files Browse the repository at this point in the history
Added gzip dd stuff.
  • Loading branch information
theredbaron1834 authored Mar 2, 2017
1 parent 2d6d28e commit 18794fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cheet_Sheet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ echo "this stuff is run via the function"
{
stuff

# Disk imagestuff
dd if=/dev/sdX | gzip > backup.img.gz # Create gziped dd image.
cat backup.img.gz | gunzip | dd of=/dev/sdX # Restore gziped dd image


# Echo stuff
blue='\033[0;34m'
red='\033[0;31m'
Expand Down

0 comments on commit 18794fd

Please sign in to comment.