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.
No comments