0
folderA contains [dirA, dirB, dirC, fileA, fileB]

I want to copy folderA to folderA-copy without dirB and dirC how should I do that?

Sam
  • 8,387
  • 19
  • 62
  • 97

1 Answers1

0

Use rsync command exclude option which provides you with option to enter regex for folder/files or specify a file containing all the directories you want to ignore or specify particular directory or file.