Backup entire Ubuntu System

sudo su
cd /
tar cvpjf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /

tar – The backup program

c – Create archive
v
p
j – use bgzip compression
f

backup.tgz

–exclude=*** exclude these directories from the backup

Add a Comment

Your email address will not be published. Required fields are marked *