Login to Members Area

Choose the service you want to log in
     
24x7x365 Presence
1-888-289-2246
Live Chat

Hosting Blog

 

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.

Sachin Tuesday 27 August 2013 - 8:56 pm | | Default

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.