My Pabx are storing the call recording files in 1 single folder name monitor. I would like to write a scripts to separate it to year month day. May I know how to we write the script to separate it? below is the files name pattern. this all file will backup into folder /2015/09/25/filesname.wav
old version Pabx are storing under /var/spool/asterisk/monitor/recordingfile.wav . it not separate the daily folder. I would like to get a script to backup those files with separate it.
paste a sample filename, the date is generally encoded twice in the name, one quit obviously, the other in the ‘uniqueid’ (which includes seconds since the epoch) so piping a ‘ls’ through a ‘for loop’ filter should be easy