Horje
tar exclude directory Code Example
tar exclude directory
tar -cvf backup.tar --exclude="public_html/template/cache" public_html/
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
tar exclude directories from a File
tar -cvf backup.tar --exclude="log" --exclude="cache" public_heml/
tar exclude directories from a File
tar -cvf backup.tar -X exclude_directory.txt public_html/




Shell

Related
how to upgrade gradle version in linux Code Example how to upgrade gradle version in linux Code Example
update composer Code Example update composer Code Example
OMV install script Code Example OMV install script Code Example
upgrade composer Code Example upgrade composer Code Example
bash echo Code Example bash echo Code Example

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