You have chosen to sponsor your bid up to a maximum amount of .
I need a cron job that will copy audio files stored on our Fonality phone server to our NAS and organize them in to the appropriate sub-folders.
Our phone server saves all recorded phone calls as wav files in: /var/spool/asterisk/monitor
The audio files are saved as user-XXX-details.wav
So there should be a config where I can match the user-number to the sub-folder that they should be copied to.
For example: user-221-15564982321.wav should be copied to the sub folder John Doe and the file user-222-354660165498.wav should be copied to the sub-folder Jack Smith.
The main folder is call_recordings on our NAS. I imagine that I will mount this as a NFS share.
I know almost zero about Linux so I will need step-by-step instructions on how to configure everything.
This cron job should run every Saturday morning and copy over all new files (skip files that already exist on the NAS - not sure if this will get slow as we get more and more files. Any recommendations here are welcome).
Finally, if it's possible to to convert the wav files to mp3 or ogg to save space before copying them over, that would be great. The original wav files in the monitor folder must not be edited though.
Hopefully this covers everything. If you have any questions please let me know.