How to Delete/Copy the Recordings??

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

How to Delete/Copy the Recordings??

Postby papa_Jun » Tue Nov 08, 2011 9:06 am

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
papa_Jun
 
Posts: 5
Joined: Fri Oct 28, 2011 7:40 am

Postby boybawang » Tue Nov 08, 2011 9:19 am

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
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Postby papa_Jun » Tue Nov 08, 2011 9:34 am

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..
papa_Jun
 
Posts: 5
Joined: Fri Oct 28, 2011 7:40 am

Postby mark_flynn » Tue Nov 08, 2011 9:43 am

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?
VERSION: 2.4-362a
BUILD: 120316-1203
mark_flynn
 
Posts: 78
Joined: Fri Sep 23, 2011 8:15 am
Location: Manchester, UK

Postby boybawang » Tue Nov 08, 2011 9:48 am

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
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Postby papa_Jun » Tue Nov 08, 2011 9:52 am

Thanks guys! ^_^
Now I know what to do.. ^_^
Thanks..
papa_Jun
 
Posts: 5
Joined: Fri Oct 28, 2011 7:40 am

Re: How to Delete/Copy the Recordings??

Postby porpoise3 » Thu Apr 19, 2012 8:54 pm

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
porpoise3
 
Posts: 34
Joined: Fri Feb 12, 2010 12:55 pm
Location: West Florida

Re: How to Delete/Copy the Recordings??

Postby striker » Fri Apr 20, 2012 12:10 am

www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: How to Delete/Copy the Recordings??

Postby DomeDan » Fri Apr 20, 2012 3:41 am

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
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: How to Delete/Copy the Recordings??

Postby porpoise3 » Fri Apr 20, 2012 7:07 am

Thank You guys so much... I TOTALLY appreciate your help and assistance.
Hope all is and has been well... ;))
porpoise3
 
Posts: 34
Joined: Fri Feb 12, 2010 12:55 pm
Location: West Florida

Re: How to Delete/Copy the Recordings??

Postby theproftron » Tue Aug 18, 2015 2:14 pm

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.
theproftron
 
Posts: 1
Joined: Tue Aug 18, 2015 2:10 pm

Re: How to Delete/Copy the Recordings??

Postby bobchaos » Wed Aug 19, 2015 3:28 am

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.
bobchaos
 
Posts: 171
Joined: Fri Jan 06, 2012 12:46 pm

Re: How to Delete/Copy the Recordings??

Postby striker » Mon Aug 24, 2015 12:28 am

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
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am


Return to Support

Who is online

Users browsing this forum: No registered users and 108 guests