Hi,
I have one live BBB and one test BBB server setups.
On both servers the it is 2.3 build.
The 2 new meeting recordings got deleted on LIVE automatically so I am concerned about the mechanism that deletes the RAW recordings automatically.
I just understood that vi /etc/cron.daily/bigbluebutton file has following entries for recording deletion.
----------------------------------------------------------------------
#
# Delete old raw dirs from recordings properly published using 'presentation' scripts.
#
remove_raw_of_published_recordings(){
#TYPES=$(cd /usr/local/bigbluebutton/core/scripts/process; ls *.rb | sed s/.rb//g)
logger "Removing raw directory of old recordings:"
TYPES="presentation"
cd /var/bigbluebutton/recording/raw/
old_meetings=$(find . -name events.xml -mtime +$published_days | cut -d"/" -f2 )
for meeting in $old_meetings
do
PROPERLY_PUBLISHED="true"
FAILED_TYPES=""
for type in $TYPES
do
file="/var/bigbluebutton/recording/status/published/$meeting-$type.done"
if ! [ -f "$file" ]; then
PROPERLY_PUBLISHED="false"
FAILED_TYPES="$FAILED_TYPES $type"
fi
done
if [ "$PROPERLY_PUBLISHED" == "true" ]; then
logger "$meeting properly published, removing raw dir."
rm -r /var/bigbluebutton/recording/raw/$meeting/
else
logger "$meeting was not properly published in [ $FAILED_TYPES ]"
fi
done
}
remove_raw_of_published_recordings
#
# Remove old *.afm and *.pfb files from /tmp directory (if any exist)
#
find /tmp -name "*.afm" -mtime +$history -delete
find /tmp -name "*.pfb" -mtime +$history -delete
----------------------------------------------------------------------------------
I can see that none of these lines are commented. Especially the function call (i.e. remove_raw_of_published_recordings )
With uncommented lines above are the RAW recordings set to be deleted?
If so, why a large amount of recordings on test server's RAW directory not yet deleted even though RAW recordings are set to be deleted after 14 days?
And MOST IMPORTANTLY, if these uncommented lines are supposed to delete RAW recordings then why are they by default uncommented? I read in other post that by default no recordings will be deleted for self hosted BBB servers.
What will completely disable ALL automatic deletions of RAW recordings?