• 1-888-289-2246
  • 24x7x365 Presence

How to make an archive with the exclusion of a directory/file


Sometimes it is necessary to make an archive with the exclusion of a folder or files. In such a case, the command below helps us do that on the Linux server:-

tar -pczf MyBackup.tar.gz /home/Webfiles/ –exclude “/home/Webfiles/tm”

That’s it.

]]>


Leave a Reply

Your email address will not be published. Required fields are marked *