Skip to main content
Nordlys logo, a drawing of two gray mountains with green northern lights in the background TIL

Back to all TILs

Ask rsync to respect .gitignore

Published on by Brie Carranza · 1 min read

Table of Contents

Show more

It is possible to ask rsync to respect .gitignore when transferring data with the --filter switch.

--filter=':- .gitignore'

This approach would work for .dockerignore or robots.txt or well, any file that lists paths one-per-line.

�� READmore

man 1 rsync