Horje
gzip folder with tar and exclude directories Code Example
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




Shell

Related
ssl erzwingen htaccess Code Example ssl erzwingen htaccess Code Example
unstage particular file git Code Example unstage particular file git Code Example
install zerotier raspberry pi Code Example install zerotier raspberry pi Code Example
find exclude hidden files Code Example find exclude hidden files Code Example
install stylelint Code Example install stylelint Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8