It is one of the easiest way to take full backup of your Linux system.
Switch to the root user
$ sudo su
your password
now start taking the backup in tar file
# tar cvpzf backup.tgz –exclude = /proc –exclude = /lost+found –exclude = /backup.tgz –exclude =/mnt –exclude= /sys /
If you have problem of space then try tar cvpjf backup.tar.bz2 and rest remains same.
For restoration
#tar xvpfz backup.tgz -C /
or if you are using bz2 use
#tar xvpfj backup.tar.bz2 -C /
now this tar file can easily be copied and moved
enjoy 😛
Be the first to comment.