How to create tar archive

Since I started working with cPanel server I always needed to create archives from directories.
For example backing up a user’s home directory.

How can you do this? It’s not difficult at all. For exemple to backup a user home directory you would have to run:

tar -pczf rchive.tar.gz /home/USERNAME

You can read more about tar by reading it’s manual.

man tar

Cheerz 🙂

Please follow and like us:
About shk

shk is a DevOps engineer with more than 12 years of experience in different organizations. He enthusiastic about learning new technologies and shares his knowledge through his blogs.

Comments

  1. Hi from google Google-TCW

Comment Policy:

Your words are your own, so be nice and helpful if you can. Please, only use your real name, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.

Tell us what you're thinking...

All comments are moderated.

* Denotes required field.

*

*

Previous Post:
Next Post: