Home » Blog » Software Development » Using rsync to syncronize folder structure with file filter

Using rsync to syncronize folder structure with file filter

I used this command to sync a folder structure with rsync in combination with a file filter:

rsync -avz --include '*/' --include '**/HERE_THE_PATTERN' --exclude='*' DIR_TO_SYNC REMOTEHOST:TARGETDIR

For a dry-run, you could add the -n parameter to the call above:

rsync -anvz --include '*/' --include '**/HERE_THE_PATTERN' --exclude='*' DIR_TO_SYNC REMOTEHOST:TARGETDIR

Check Also

MEAN adventures continued: An UML Online Editor for PlantUML

Some weeks ago I wrote about my recent journeys into the world of web application …

%d bloggers like this: