I know rsync has an --exclude
option which I use quite frequently. But how can I specify that it should exclude all "numeric" directories?
In the directory listing below I would like to only have it copy css
,html
,and include
.
..
123414
42344523
345343
2323
css
html
include
Normally my syntax is something like
rsync -avz /local/path/ user@server:/remote/path/ --exclude="cache"
I think it should look something like --exclude="[0-9]*"
but I don't think that will work.
rsync
understands one entry per line. spaces will not work. – Tim Kennedy Jun 30 '18 at 18:04