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 :: track a git submodule on a branch 
Shell :: 7.14 ES on linux installation 
Shell :: open ssl change pkcs1 to pkcs8 
Shell :: powershell add-type if not exists 
Shell :: get or filter or ouput docker ps custom columns 
Shell :: win start posgres 
Shell :: bash combine Exit command and exit codes to build quick logic 
Shell :: android studio tar install to ubuntu 20 
Shell :: linux replace after char 
Shell :: initialize SQL server from command line 
Shell :: Edit remote files in new tab of Vim session 
Shell :: how to search .class file in unix 
Shell :: polyfill download 
Shell :: transcode input to output with h264 720p with gpu 
Shell :: how to run .sh file 
Shell :: angular new site 
Shell :: lz4 compression directory 
Shell :: How to translate a string to md5 using bash 
Shell :: add a colored code section in gitlab review 
Shell :: bash date as d/m/y 
Shell :: start automount daemon aix 
Shell :: cara lihat password mac 
Shell :: journalctl --flush --rotate; journalctl --vacuum-time=1s; 
Shell :: btrfs get disk utilization for subdirectory 
Shell :: docker error "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation. 
Shell :: Step-by-step – Acrobat Reader DC Ubuntu 20.04 Installation 
Shell :: Show error message and exit if $FOO is unset (or null) 
Shell :: c myprintf 
Shell :: pip install pi 
Shell :: npm global install without sudo 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =