downloading only specific directories from directory tree

Istvan Gabor suseuser04 at
Fri Jan 20 23:08:31 UTC 2017


I have read rsync manual and several howtos on how to use rsync, still
I don't know if it's doable what I want to do, and if yes, how.

The scenario:

I would like to make a local copy of openSUSE 13.2 repositories.
I use openSUSE linux.

The repos are located in a multi-level directory structure, eg:

Let's call this directory the root dir.

Each directory in the root has subdirectories, and one of the 
is named "openSUSE_13.2". The openSUSE_13.2 dir can be one, two, or 
more level
downstairs in the root dir, eg:

There are plenty of directories in the root dir, and each subdirectory 
have several subdirectories.

Is it possible, using rsync, to download only all "openSUSE_13.2" 
directories with
their contents, without specifying directly one by one every 
to be included or excluded?

I tried to use filters.txt file with content:

+ **openSUSE_13.2/***

with this command:

rsync -av --include-from=filters.txt 
rsync:// ./

This downloads every directory. How can I exclude those are not 



More information about the rsync mailing list