Page 1 of 1
How to Delete/Copy the Recordings??
Posted:
Tue Nov 08, 2011 9:06 am
by papa_Jun
Need Some help about to this problem.. please help..
I cant delete the recordings in the server, im using winscp to access the server but when im going to the monitordone folder, my PC will be hang... Is there another way to delete/copy the recordings?..
your rply is highly appreciated.. thanks
Posted:
Tue Nov 08, 2011 9:19 am
by boybawang
if you want to copy you can use winscp
1. Login to the server using winscp
2. go to the folder /var/spool/monitorDONE/GSM or /var/spool/monitorDONE/MP3 and download the folders
3. delete /var/spool/asterisk/monitorDONE/ORIG since they contain the original that have large filesizes
Posted:
Tue Nov 08, 2011 9:34 am
by papa_Jun
Is there another way to delete/copy recordings without using the winscp?..
When I did ur instructions, My PC ddnt respond.. maybe the recordings is too much large to access.. Is there another way?..
Thanks..
Posted:
Tue Nov 08, 2011 9:43 am
by mark_flynn
Download PuTTy
login to server using root & password
cd /var/spool/asterisk/monitorDONE/ORIG
del *.* or *.WAV
and to copy the files from server why not use the FTP transfer and setup a small FTP server?
Posted:
Tue Nov 08, 2011 9:48 am
by boybawang
when downloading recordings either you need winscp or you will need an ftp service so you can login using an ftp client and download the recordings, for deleting recordings you will use putty
Posted:
Tue Nov 08, 2011 9:52 am
by papa_Jun
Thanks guys! ^_^
Now I know what to do.. ^_^
Thanks..
Re: How to Delete/Copy the Recordings??
Posted:
Thu Apr 19, 2012 8:54 pm
by porpoise3
I have a question in regards to deleting Recordings... I ran out of disk space and I found this command line on the forum and typed it after logging in to PuTTy...... /usr/bin/find /var/spool/asterisk/monitorDONE -maxdepth 2 -type f -mtime +2 -print | xargs rm -f
which said it will remove old recordings more than 7 days old and after so long of running the process, my monitor went to sleep and I pressed the "up" arrow to reawaken it...does this affect the process that is running ? Is this the best way to "clean" up space so I do not get the ERROR msg... Mysql connect ERROR can't connect to local MySQL server through socket my connect error call on can't connect to local MySQL server through socket/var/run/mysql/mysql.sock'(2) ??
Thank You in Advance for Anyone helping
Re: How to Delete/Copy the Recordings??
Posted:
Fri Apr 20, 2012 12:10 am
by striker
Re: How to Delete/Copy the Recordings??
Posted:
Fri Apr 20, 2012 3:41 am
by DomeDan
porpoise3: answer to your question: no, pressing up-arrow wont affect the process, it will be sent when the command is finished.
And yes it is a good way to free up some space.
read strikers blog, it explains the procedure quite well
Re: How to Delete/Copy the Recordings??
Posted:
Fri Apr 20, 2012 7:07 am
by porpoise3
Thank You guys so much... I TOTALLY appreciate your help and assistance.
Hope all is and has been well...
)
Re: How to Delete/Copy the Recordings??
Posted:
Tue Aug 18, 2015 2:14 pm
by theproftron
I am having a similar issue except when I run either of the command lines to delete the recordings it times out and bashes out saying that the argument is too long. I spoke to an acquaintance of mine and he said that I have to delete one at a time until the script can run successfully. He also won't tell me what that command line is. Please help. I haven't been able to record because of this issue.
Re: How to Delete/Copy the Recordings??
Posted:
Wed Aug 19, 2015 3:28 am
by bobchaos
So your disk is still 100% full? You may need to make a small bit of space. Most applications, including ftp clients, need space to write stuff like logs or temps files and whatnot. Start by deleting manually a big recording with rm -f, then you should be able to run more complex commands to start pulling your stuff out/mass deleting.
You may want to setup an archive server (any old FTP will do). There's a cronjob that's commented out by default in Vicidial that sends all your recordings by FTP automatically using settings found in /etc/astguiclient.conf. You'll still need to clean up the archive server every now and then but it makes everything much more manageable.
Re: How to Delete/Copy the Recordings??
Posted:
Mon Aug 24, 2015 12:28 am
by striker
try this command to delete bulk files for similar type
cd /var/spool/asterisk/monitorDONE/MP3
find . -type f -name "*.mp3" | xargs -l500 rm -f
if you recorded your voice in gsm then
cd /var/spool/asterisk/monitorDONE/GSM
find . -type f -name "*.gsm" | xargs -l500 rm -f
also you need to delete the recordings from ORIG folder
cd /var/spool/asterisk/monitorDONE/ORIG
find . -type f -name "*.wav" | xargs -l500 rm -f