Tuesday, August 31, 2010

Using Tar Command to backup system files in Unix Based Server

# tar -cjf file_aug10.tar.bz2 filename
In the above example command the system would create a tar.bz2 file named home.tar.bz2 in the directory you currently are in of the home directory.

To extract the compress file:

# tar -xjvf file_aug10.tar.bz2

0 comments:

Post a Comment