Answer the question
In order to leave comments, you need to log in
How to sync directories with rsync?
Good afternoon, please tell me how to synchronize files by directories,
one directory contains folders 1 2 3 4 5 6 and another directory contains folders 1 2 3 4 5 6, how to synchronize L*.log files from folder 1 to folder 1 via rsync etc. from 2 to folder 2, but only L*.log files
Answer the question
In order to leave comments, you need to log in
rsync -av --exclude='*.*' --include='L*.log' one directory/ other directory/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question