How to backup your stuff UNIX-style

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
whitelight999
Level 1
Level 1
Posts: 16
Joined: Sun Feb 28, 2016 3:56 pm

Re: How to backup your stuff UNIX-style

Postby whitelight999 » Fri Jun 23, 2017 7:54 pm

Regarding the first part of the tutorial

So if you wanted a script which had to run on both MBR and GPT drives
sudo gdisk -l /dev/sda | grep "MBR only"
sudo gdisk -l /dev/sda | grep "GPT present"


If #MBR
then
dd if=/dev/hda of=/tmp/hda-mbr.bin bs=512 count=1
elseif #GPT
???
fi

Anyone know what to put in for ??? to solve this?


Return to “Tutorials”