Friday, December 11, 2020

how to rsync only some sub directories

* is wildcard
*** means all files and directories

`cat filelist`
>
> + 01 SomeDir/
> + 01 SomeDir/08 */***

`rsync -avz --delete --include-from filelist --exclude '*'
/data/samba/hello/ user@10.10.1.2:synced/hello`

0 comments:

Post a Comment