Create a tar archive

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

This Post Has One Comment

  1. Smoking

    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