linux cp everything except

Shell
$ cp -r !(dir2) /home/sk/backup/
Source

Also in Shell: