I looked for similar questions, but it was hard to get a clear answer in my case.
I use my synology DS1515+ and DSM 6.2.2.
First of all, I have been made daily folder containing a date using script as below;
mkdir /volume1/video/$(date +%Y-%m-%d\(%a\))
This script is executed at daily midnight. So every midnight, these folders are made.
(It means destination folder is always already existed before copying.)
And some video files are downloaded. Those filenames contain date.
For example, ABCDABCD.200328.avi or EFGHIJKH.200327.1080p.mp4
Filenames don't have certain rules but date like YYMMDD type is included in every filenames.
I'd like to copy these files to folders which is including same date.
(folder what is made automatically as above I explain)
[Location of directory]
Path of files what I wanna copy : /volume1/video/
Example of Destination directory : /volume1/video/daily/2020-04-06(Mon)
Could you help or explain how to do it?
If you explain to me, please include path of directory in my case as above.
(because I can't apply the code what you recommend to me for lack of my understanding. I apologize)
Thank you very much again. Have a good day.