Originally Posted by tsitras
hi. i am running asterisk in my box and i would like to have all the recordings saved. the default recording is in .wav format. so in first place i need to change it to .mp3. Then i need to compress the whole folder and then move it to a different path (NAS). this script will take place every month on the 28th at 23:00.
some hints please?
Hints? Sure...ffmpeg can convert one format to another (read the man page, but "ffmpeg -i <input file name> <output file name>.mp3" will probably do it. Then read the man page on the tar command, which can archive/compress a whole tree into one file for you. Put those commands in a script, and put it in cron to run whenever you'd like.
If you post what you've written so far and where you're stuck, we can help. Since you've been registered here since 2003 (nine years), you should already know basics of scripting and how to use cron...and that we typically don't write scripts for people, but will be happy to help when someone is stuck.