28
5
I have two same-size flash cards, and I want to copy contents of one to the other based on the following rules:
- I want all directories and subdirectories in place
- I want to exclude files of type .FOO, .BAR, and .ZIM (all other files are copied)
- Bonus: It'd be cool if it outputs the filenames as they are copied considering it will be copying ~8 GB of information
Could this be done with "find" somehow?
Little follow-up here: the copy finished and /src/* is now in /dest/src/* How to use rsync to get /src/* in /dest/*? – macek – 2010-02-05T17:32:48.573
Try
/source/ /dest
– John T – 2010-02-05T17:44:21.823This doesn't work. I am still seeing *.FOO files being copied over. – Jake – 2017-08-26T00:03:18.553
It is specified how you should give the path for
– totymedli – 2018-01-23T01:35:14.073--exclude
. If you have problems with it, check out this answer.