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
  • 7,839
  • 19
  • 60
  • 96

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.