Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash copy files but exclude some directories

# Basic syntax:
rsync -a /directory/to/copy --exclude=directory_to_ignore

# Note, the directory_to_ignore can be anywhere within the 
#	/directory/to/copy
# Note, to add additional directories to ignore, add more --exclude
#	statements
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #copy #files #exclude #directories
ADD COMMENT
Topic
Name
7+6 =