Automation to copy files (shell command?)

This is probably a Linux question but as the shell command is obviously pretty powerful and hence dangerous I thought I’d ask some advice.

How can I copy all the files from my tts folder to somewhere else (preferably on my network but it could just be locally on my hassio machine)?

The reason I ask is that I am troubleshooting an error where my sonos throws an error because it can’t find a file in the tts cache. I believe the error is erroneous as it is not actually trying to use that file to play so I can only think it needs the last played file in its setup somehow.

I clear my cache every night so as a starting point I’d like to see what it is actually trying to play hence I’d like to copy the files before I delete them.

You can use the shell command component

I suggest you move the files instead of copying and deleting. You can do this with the linux command ‘mv’
It’s used like this:
mv source destination

Yeah thanks I knew about the shell command which was why I was asking about the Linux syntax. I didn’t want to inadvertently end up doing something more than just move some files!

I delete my cache every night using service: tts.clear_cache but yes in this specific case I could just move them before that service is called instead of copying.

Thanks