Last active
August 6, 2018 01:40
-
-
Save vajonam/94b7eb87d2004286641a954777d68940 to your computer and use it in GitHub Desktop.
Commands for Backing up whole disk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rsync -ahPHAXx --delete --exclude='{/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}' /old/ /new | |
sudo grub-install --recheck --root-directory=/new/ /dev/sda | |
sudo update-grub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment