Create a tar archive

May 3, 2009 · Filed Under Linux Commands 

Sometime, you may need to move some large folder from one server to another or you may require to take backup of user’s home directory. On Linux platform, you can use command tar to create an archive of the folder.

For example, if you want to create an archive for /home/user1 folder then use the following command:

tar -pczf user1.tar.gz /home/user1

For more options, you may refer the manual of this command. Use following command to get the details about all options:

man tar

Related Posts

  1. create an email account in cpanel

Comments

One Response to “Create a tar archive”

  1. Smoking on August 30th, 2009 10:02 PM

    I’m trying to create separate cpanels for my addon domains, I never thought it would be this complicated the first time around. In any case, this clears things up a little bit, thanks for the tip.

Leave a Reply

You must be logged in to post a comment.

Untitled Document