Backup Files with Specific File Extension
July 07, 2023 —
Gregg Szumowski
Here is how you can use rsync
to backup only the
.ogg files in the Music directory to the OGG
directory:
$ rsync -a --prune-empty-dirs --include='*/' --include='*.ogg' --exclude='*' Music/ OGG/