1

On my Synology station I have a huge photo archive with the following structure:

/volume1/photo/2019/
                +--January
                    +--@eaDir (hidden folder)
                         +--001.jpg (folder)
                               +-- THUMB.jpg
                         +--002.jpg (folder)
                               +-- THUMB.jpg
                    +--001.jpg (image file)
                    +--002.jpg (image file)

I want to copy the thumbnails (not the actual images) to a different volume but keep the basic folder structure like this:

/volume2/thumbnails/2019/
                +--January
                    +--001.jpg (former thumbnail)
                    +--002.jpg (former thumbnail)

What I tried was:

find /volume1/photo/2019/ -name '*PREVIEW.jpg' -exec cp --parents \{\} /volume2/target/ \;

But this still keeps the hidden @eaDir folder and I cannot figure out how to omit them.

Can anyone help me out here?

Hennes
  • 65,804
  • 7
  • 115
  • 169

0 Answers0