Answer the question
In order to leave comments, you need to log in
How, using, for example, rsync, to synchronize two directories, but pulling out ONLY files from the first one?
How, using, for example, rsync, to synchronize two directories, but pulling out ONLY files from the first one? That is, it was:
Каталог 1:
-файл1
-файл2
-Каталог 1-1:
-файл1-1
-файл1-2
Каталог2:
-файл1
-файл2
-файл1-1
-файл1-2
Answer the question
In order to leave comments, you need to log in
find . -type f -exec rsync -a {} --delete ./destination/ \;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question