Try to copy files recursively from directory (d1) to directory (d2) exclude some files and folders using lists: filepaths to exclude stored as files.txt and directories list to exlude stored as dirs.txt.
Already read some SOF articles like Copy folder recursively, excluding some folders BASH copy all files except one
tried rsync
rsync -avr --exclude=*/exclude_filename_* d1/ d2/
but wildcards don't suit either due to a large number of different file names. Maybe I have to use WHILE loop with rsync..? Still looking for solution. Does anybody know how to do this?