Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5554

Backup your Linux system

$
0
0

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 :P

 

 


Viewing all articles
Browse latest Browse all 5554

Trending Articles