How to backup your stuff UNIX-style

Write tutorials here
There are more tutorials here
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
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"

dd if=/dev/hda of=/tmp/hda-mbr.bin bs=512 count=1
elseif #GPT

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

Return to “Tutorials”