Cron job to copy and organize files

In Progress

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 [url removed, login to view]

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

Skills: Linux

See more: linux cron job copy file nas, cron job copy files nas, space for job, jack smith, copy edited, job recommendations, how to get any job, audio job, to copy, linux mp3 server, file copy monitor, convert saved mp3 file wav, linux file share, monitor folder copy files, convert file step, monitor file copy, ogg mp3, folder monitor copy, asterisk server job, monitor file copying, fonality, copy files linux server, job share, copy linux, configure linux server asterisk

Project ID: #4006985