how to filter the old recordings and delete all
Added by cj geek over 13 years ago
Hi guyz,
Does anyone here have already experience on how to delete all old recordings..because i want all my recordings in my dialer to remove all old recordings..
any suggestion or steps on how to do it'?
Replies (20)
RE: how to filter the old recordings and delete all
-
Added by Regie Irupang over 13 years ago
Download PuTTy
login to server using root & password
cd /var/spool/asterisk/monitorDONE/ORIG
del *.* or *.WAV
To filter
/usr/bin/find /var/spool/asterisk/monitor -maxdepth 2 -type f -mtime +7 -print | xargs rm -f
will remove old recordings more than 7 days old
RE: how to filter the old recordings and delete all
-
Added by cj geek over 13 years ago
thanks for the reply regie.
im stil confused.does it required to have 24 0 * * * in the first line of /usr/bin/find /var/spool/asterisk/monitor -maxdepth 2 -type f -mtime +7 -print | xargs rm -f
like for example in my crontab
24 0 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/ORIG/ -maxdepth 2 -type -mtime +7 -print | xargs rm -f
and my 2nd question
if i will add another script to filter and delete all old recordings that more than 7 days
is it ok to have like this in my crontab?
24 0 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/ORIG/ -maxdepth 2 -type -mtime +7 -print | xargs rm -f
24 0 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/MP3/ -maxdepth 2 -type -mtime +7 -print | xargs rm -f
as you have observe they are the same "24 0 * * *" ..
does it requred to have like that or not?
RE: how to filter the old recordings and delete all
-
Added by Wilper Necesario over 13 years ago
Hi,
Its just a schedule you can change it base on whenever you want the script to be executed.
For your reference:
- * * * * command to be executed
? ? ? ? ?
? ? ? ? ?
? ? ? ? ?
? ? ? ? ???? day of week (0 - 6) (Sunday=0 )
? ? ? ????????? month (1 - 12)
? ? ???????????? day of month (1 - 31)
? ????????????????? hour (0 - 23)
?????????????????????? min (0 - 59)
Cheers
RE: how to filter the old recordings and delete all
-
Added by cj geek over 13 years ago
@Wilperson: thanks! dude..
Regie Irupang: ive already issue this command del *.* or *.WAV under /var/spool/asterisk/monitorDONE/ORIG,, but nothings happened.do am i miss something?.?
RE: how to filter the old recordings and delete all
-
Added by Wilper Necesario about 13 years ago
Hi,
Try to use rm instead of del in your command.
rm /var/spool/asterisk/monitorDONE/ORIG/*.wav
cheers
Q^_^p
RE: how to filter the old recordings and delete all
-
Added by cj geek about 13 years ago
thanks! wilperson.
RE: how to filter the old recordings and delete all
-
Added by wasef anwar about 13 years ago
I Found that it is best connect to that particular folder using ftp ,like coreftp , filering the sale numbers and deleting the rest .
You can Enter custom sorting or filtering commands .I also comes with a good user interface, this way you dont have to worry messing up your linux commands.
RE: how to filter the old recordings and delete all
-
Added by ritesh pathak almost 12 years ago
how to remove recorgings from go autodial......please give me correct answer
RE: how to delete all recordings
-
Added by ritesh pathak almost 12 years ago
ritesh pathak wrote:
how to remove recorgings from go autodial......please give me correct answer
RE: how to filter the old recordings and delete all
-
Added by striker 247 almost 12 years ago
recordigs wil be stored in /var/spool/asteris/MonitorDONE/MP3 if it is stored as MP3
cd /var/spool/asterisk/monitorDONE/MP3
rm -rf *.wav to delete all the recordings
RE: how to filter the old recordings and delete all
-
Added by ritesh pathak almost 12 years ago
this command how to use in putty software
RE: how to remove old recordings and delete all
-
Added by ritesh pathak almost 12 years ago
cd /var/spool/asterisk/monitorDONE/MP3 how to use this command
root@go ~#cd /var/spool/asterisk/monitorDONE/MP3.....is it right
RE: how to remove old recordings and delete all
-
Added by ritesh pathak almost 12 years ago
ritesh pathak wrote:
cd /var/spool/asterisk/monitorDONE/MP3 how to use this command
root@go ~#cd /var/spool/asterisk/monitorDONE/MP3.....is it right
if i am wrong that give me correct way......please
RE: how to filter the old recordings and delete all
-
Added by Levy Ryan Nolasco almost 12 years ago
Hi,
Good day! Striker is correct but you can also use the command below. Log in to your server via ssh then enter the command. The settings below will delete the recordings 7 days old. You can change the value "7" according to your desired date.
/usr/bin/find /var/spool/asterisk/monitorDONE/MP3/ -maxdepth 2 -type -mtime +7 -print | xargs rm -f
Regards,
Ryan
RE: how to remove the recordings and delete all
-
Added by ritesh pathak almost 12 years ago
i use this command
[root@go ~]rm /var/spool/asterisk/monitorDONE/ORIG/*.wav but nothing happened.......
this error show..-bash: /bin/rm: Argument list too long
i want to remove all recordings from dialer ....please give me correct way ...step by step
RE: how to filter the old recordings and delete all
-
Added by Levy Ryan Nolasco almost 12 years ago
Hi,
You can use the command we mentioned on the previous post. Please make sure that you have backup because it is irreversible. All the recordings in the /var/spool/asterisk/monitorDONE/ORIG/ will be deleted.
/usr/bin/find /var/spool/asterisk/monitorDONE/ORIG/ -maxdepth 2 -type -mtime +0 -print | xargs rm -f
Regards,
Ryan
RE: how to filter the old recordings and delete all
-
Added by ritesh pathak almost 12 years ago
thanks a lot ........ryan
RE: how to filter the old recordings and delete all
-
Added by ritesh pathak over 11 years ago
how to remove all recordings from goauodialer.
i am using this command..
[root@go ~]#rm -rf /var/spool/asterisk/monitorDONE/ORIG/*.wav but nothing happen...
this error show
-bash: /bin/rm: Argument list too long
i want to remove all recordings from my dialer....
please give me a way......
RE: how to filter the old recordings and delete all
-
Added by striker 247 over 11 years ago
to delete wav files form ORIG dir type the below command
find . -type f -name "*.wav" | xargs -l500 rm -vf
to delete mp3 files form MP3 folder type the below command
find . -type f -name "*.mp3" | xargs -l500 rm -vf
br
striker
www.striker24x7.blogspot.com
RE: how to filter the old recordings and delete all
-
Added by mousam bose over 9 years ago
Levy Ryan Nolasco wrote:
Hi,
Good day! Striker is correct but you can also use the command below. Log in to your server via ssh then enter the command. The settings below will delete the recordings 7 days old. You can change the value "7" according to your desired date.
/usr/bin/find /var/spool/asterisk/monitorDONE/MP3/ -maxdepth 2 -type -mtime +7 -print | xargs rm -f
Regards,
Ryan
its showing /usr/bin/find: invalid argument `-mtime' to `-type' this what to do please help me..