Copy folder recursively, excluding some folders
Use rsync: rsync -av –exclude=”path1/to/exclude” –exclude=”path2/to/exclude” source destination Note that using source and source/ are different. A trailing slash means to copy the contents of the folder source into destination. Without the trailing slash, it means copy the folder source into destination. Alternatively, if you have lots of directories (or files) to exclude, you can … Read more