How to use Rsync to copy only specific subdirectories (same names in several directories)
I’ve found the reason. As for me – it wasn’t clear that Rsync works in this way. So correct command (for company1 directory only) must be: rsync -avzn –list-only –include ‘company1/’ –include ‘company1/unique_folder1/***’ –exclude ‘*’ -e ssh user@server.com:/path/to/old/data/ /path/to/new/data I.e. we need include each parent company directory. And of course we cannot write manually all … Read more