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

Create a tar archive

Last Updated on

Tagged on:     

One thought on “Create a tar archive

  • August 30, 2009 at 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

This site uses Akismet to reduce spam. Learn how your comment data is processed.