Delete ALL Recordings till January

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

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

Delete ALL Recordings till January

Postby gmcust3 » Thu Mar 04, 2010 7:42 am

On next reboot, I want to DELETE ALL recordings till January End. Cron has it but it says about 7 days. I can change it to 60 days and reboot, and it will delete all ?

Before that I want to take Back Up all in another HDD.

Do I need to attach another HDD and then FTP ?

Another HDD can be WINDOWS ?
GoAutoDial CE
VERSION: 2.4-309a
BUILD: 110430-1642
No other software installed on the box.
I've read the manager manual.
gmcust3
 
Posts: 1148
Joined: Sat Oct 24, 2009 1:15 pm

Re: Delete ALL Recordings till January

Postby brett05 » Thu Mar 04, 2010 8:37 am

gmcust3 wrote:On next reboot, I want to DELETE ALL recordings till January End. Cron has it but it says about 7 days. I can change it to 60 days and reboot, and it will delete all ?

Before that I want to take Back Up all in another HDD.

Do I need to attach another HDD and then FTP ?

Another HDD can be WINDOWS ?


very simple look the syntaxe of crontab here :
### remove old recordings more than 7 days old
#24 0 * * * /usr/bin/find /var/spool/asterisk/monitorDONE -maxdepth 2 -type f -mtime +2 -print | xargs rm -f

first delete comment of this ligne as this:
### remove old recordings more than 7 days old
24 0 * * * /usr/bin/find /var/spool/asterisk/monitorDONE -maxdepth 2 -type f -mtime +2 -print | xargs rm -f

then to spécify number of day use this :
for exemple if we to delete all file from /var/spool/asterisk/monitorDONE with the number of days old that the folder of recording you need just change this : -mtime +2 to the number of days .
exemple for 30 days change it to :-mtime +30
:wink:
Jasperreports & Queuemetrics & SugarCRM integration - Customization and Add-ons
Freepbx||Billing||Centos||Opensuse||Debian||Centos||Fedora||Sangoma||Diguim
brett05
 
Posts: 571
Joined: Sun May 24, 2009 5:48 pm
Location: tunisia

Postby gmcust3 » Thu Mar 04, 2010 11:43 am


Before that I want to take Back Up all in another HDD.

Do I need to attach another HDD and then FTP ?

Another HDD can be WINDOWS ?



Any Suggestions on this ?
GoAutoDial CE
VERSION: 2.4-309a
BUILD: 110430-1642
No other software installed on the box.
I've read the manager manual.
gmcust3
 
Posts: 1148
Joined: Sat Oct 24, 2009 1:15 pm


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: Google [Bot] and 31 guests