Based on this post.

Backing-up

Navigate to where to save file.

cd /media/home

Full command to make a backup of my system.

tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys --exclude=/home/hectoryee/Music --exclude=/home/hectoryee/Movies --exlude=/media/home/Music --exclude=/media/home/Movies /
  • / - everything

Restoring

tar xvpfz backup.tgz -C /
  • C - change directory

Will overwrite everything on the partition.

Tags:

Categories:

Updated:

Back to top ↑