Hi,
Sorry, but I am a complete begginner and trying to find in web some solution to my problem.
I would like to find the way to use ssh rsync option having possibility to include only files matching given patterns.
In the following example I am trying to sync only files matching 2 patterns: "tab." and "*ini.".
Unfortunately it grabs only the last pattern and as a result I get only files matching "*ini.*" pattern.
Is there any way to grab files matching both patterns ?
$ find /test/inc/ -name "tab." -o -name "*ini.*" -printf "%P\n" | rsync -a --files-from=- /test/inc/ /test/inc2/
Top comments (0)