I have a PBX which generates call recordings as wav files and stores them in individual department folders on a windows server as follows
What I'd like to do is have a script or a tool which can be scheduled to copy\move the wav files from the windows server onto a storage server in the following format
The above keeps the dept name structure, reads the creation date of the .wav file and then creates a sub-folder under each department with the days date as the folder name before moving all that departments wav files for that date into it.
The solution needs to be able to read the file date and create folders accordingly in case the process does not run on any given day or gets interrupted and as a result the copy\move process has to catch up.
Ideally I'd like something which will copy (for testing) then be capable of being switched to moving (for production).
Hopefully the above makes sense. All ideas are gratefully received.