Parker Glynn-Adey

Backing Up with TAR

Posted in Computers by pgadey on 2019/11/03

My laptop is on its last legs. I manage to wear out laptops at an alarming rate. The Lenovo X220 has served me well, but the battery is flaking out and it shuts down everytime the wind blows. So, I looked up some options for backing up the disk. I found this brief guide to backing up.

Here are the relevant commands for reference:

$ sudo tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /
$ sudo tar -xvpzf /path/to/backup.tar.gz -C /restore/location --numeric-owner

Tagged with: , ,