Hi let's say I have a directory like this:
/ my_work /dir1 keepdir1.ddd keepdir2.ddd file.cfg (lots of files and directories I don't want) /dir2 (same layout as dir 1)
So I want to copy the directory "my_work" and all of the "dir1", "dir2", etc sub directories. But within each of those I want to keep only certain files, and certain directories. In the directories I keep I want to recursively include everything.
Here's what I've tried so far but nothing seems to copy:
rsync -rl --include-from=~/rsync_include /my_work ~/backup
And the contents of rsync_include are:
+ *file.cfg + *keepdir*/* - *