Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

gzip folder with tar and exclude directories

# create a gzip archive of my-backup-folder
# but exclude all node_module directories
# flags:
#	--exclude = exclude files, given as a PATTERN
# 	-c = create a new archive
# 	-z = filter the archive through gzip
# 	-f = use archive file or device ARCHIVE
#
# IMPORTANT NOTE:
# the exclude flag needs to come first to work
tar --exclude "node_modules" -czf backup.tar.gz /my-backup-folder
Comment

PREVIOUS NEXT
Code Example
Shell :: linux find files older than 15 minutes 
Shell :: Installing ionic local notification plugin 
Shell :: IntelliJ IDEA 4.2 
Shell :: latex number listing as equation 
Shell :: install ansible 
Shell :: anaconda install for kali linus 
Shell :: bash print a blank line 
Shell :: merge master into local branch 
Shell :: install zipalign kali linux 
Shell :: manually shut down docker mac 
Shell :: update node with nvm 
Shell :: git remove file from being tracked 
Shell :: delete a folder then git push 
Shell :: set default editor bash 
Shell :: bash list 
Shell :: create requirements file from project add them to poetry dependency 
Shell :: bash here document example 
Shell :: linux zip folder without parent folder 
Shell :: Start MySQL FreeBSD 
Shell :: sublime downloafd 
Shell :: yarn install package 
Shell :: boot pendrive windows cmd 
Shell :: allow a port in centos 8 stackoverflow 
Shell :: Chaotic-AUR Team <team@chaotic.cx 
Shell :: ubuntu install mariadb 
Shell :: start-process argumentlist with spaces powershell 
Shell :: zsh: command not found: GDAL_LIBRARY_PATH 
Shell :: pip install selenium using cmd 
Shell :: noetic catkin tools install 
Shell :: shell bash kommentti 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =