Cron job to copy and organize files

In Progress Posted Dec 3, 2012 Paid on delivery
In Progress Paid on delivery

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 [login to view URL]

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: [login to view URL] should be copied to the sub folder John Doe and the file [login to view URL] 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.

Linux

Project ID: #4006985

About the project

18 proposals Remote project Active Dec 7, 2012