F
F
fokin_nikolay19892018-11-15 15:24:38
rsync
fokin_nikolay1989, 2018-11-15 15:24:38

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

2 answer(s)
A
Alexander, 2018-11-15
@alexr64

www.opennet.ru/man.shtml?category=1&russian=0&topi...

A
Alexander Chernykh, 2018-11-15
@sashkets

rsync -av --exclude='*.*' --include='L*.log' one directory/ other directory/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question