Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

tar exclude directory

$ tar --exclude='./folder' --exclude='./upload/folder2' -zcvf /backup/filename.tgz .
Comment

tar exclude directory

tar -cvf backup.tar --exclude="public_html/template/cache" public_html/
Comment

tar exclude directories from a File

tar -cvf backup.tar --exclude="log" --exclude="cache" public_heml/
Comment

tar –exclude directories from a File

tar -cvf backup.tar -X exclude_directory.txt public_html/
Comment

PREVIOUS NEXT
Code Example
Shell :: The requested URL was not found on this server. Apache/2.4.41 (Ubuntu) Server at Port 80 
Shell :: create folder shortcut on desktop ubuntu 
Shell :: unable to install all modules vmware 
Shell :: react native init 
Shell :: install paho mqtt client raspberry pi 
Shell :: adonis js make seeder 
Shell :: shell read file line by line 
Shell :: error installing drivelist npm 
Shell :: switch to previous branch git 
Shell :: extract file extension bash 
Shell :: git clean 
Shell :: find text in files ubuntu 
Shell :: assign variable with sed not working 
Shell :: how to stop tomcat from cmd 
Shell :: powershell create object 
Shell :: remove alias powershell 
Shell :: install lunar vim 
Shell :: cocoapods not installed 
Shell :: azure powershell module 
Shell :: git push heroku master 
Shell :: fix windows and linux time 
Shell :: react native run android shows deprecated items 
Shell :: update and upgrade ubuntu 
Shell :: pyinstaller not found 
Shell :: remove all files inside directory linux 
Shell :: docker compose run 
Shell :: git graph code 
Shell :: git command create new branch from current and move changes 
Shell :: git all branches 
Shell :: Get all changes of the main branch locally 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =