Do I need to create a cron job to execute the file /etc/cron.daily/bigbluebutton?

263 views
Skip to first unread message

Ed Bobkov

unread,
Sep 25, 2015, 1:05:39 PM9/25/15
to BigBlueButton-dev
Files are not deleted now, though 5 ddays' limit is set. But there s no a specific cron job for this action.

Fred Dixon

unread,
Sep 25, 2015, 1:22:54 PM9/25/15
to BigBlueButton-dev
Hi Ed,

> But there s no a specific cron job for this action.

There is a cron job in

  /etc/cron.daily/bigbluebutton

that contains the following

#
# How N days back to keep files
#
history=5

#
# Delete presentations older than N days
#
find /var/bigbluebutton/ -maxdepth 1 -type d -name "*-*" -mtime +$history -exec rm -rf '{}' \;

You can test by running the following two commands as root

history=5
find /var/bigbluebutton/ -maxdepth 1 -type d -name "*-*" -mtime +$history -exec rm -rf '{}' \;


Regards,... Fred

On Fri, Sep 25, 2015 at 1:05 PM, Ed Bobkov <d65...@gmail.com> wrote:
Files are not deleted now, though 5 ddays' limit is set. But there s no a specific cron job for this action.

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-dev.
For more options, visit https://groups.google.com/d/optout.



--
BigBlueButton Developer
@bigbluebutton

Ed Bobkov

unread,
Sep 27, 2015, 7:11:46 AM9/27/15
to BigBlueButton-dev
I did it, but nothing changed

пятница, 25 сентября 2015 г., 21:05:39 UTC+4 пользователь Ed Bobkov написал:

Ed Bobkov

unread,
Sep 27, 2015, 7:23:30 AM9/27/15
to BigBlueButton-dev
I execute as root:
history=5

Then command:

find /var/bigbluebutton/ -maxdepth 1 -type d -name "*-*" -mtime +$history -exec rm -rf '{}' \;

All files seem to be at the same place. But they should be deleted, because they are older than 5 days. In cron jobs of the server there is no a task concerning bigblubutton


пятница, 25 сентября 2015 г., 21:05:39 UTC+4 пользователь Ed Bobkov написал:
Files are not deleted now, though 5 ddays' limit is set. But there s no a specific cron job for this action.

Fred Dixon

unread,
Sep 27, 2015, 9:18:40 AM9/27/15
to BigBlueButton-dev
Hi Ed,

> All files seem to be at the same place.

The cron job is only deleting directories that match the pattern '*-*'.  The other files in /var/bigbluebutton will not be deleted.

Regards,... Fred


--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-dev.
For more options, visit https://groups.google.com/d/optout.

Ed Bobkov

unread,
Sep 27, 2015, 9:56:46 AM9/27/15
to BigBlueButton-dev
I really do not understand. If I set the limit of 5 days to store recordings, will the folders' names be changed and this symbol be added "-"? Now all folders in /var/bigbluebutton/ have different unique names. May be something don't work properly and this is the reason the cron job is not working correctly?

пятница, 25 сентября 2015 г., 21:05:39 UTC+4 пользователь Ed Bobkov написал:
Files are not deleted now, though 5 ddays' limit is set. But there s no a specific cron job for this action.

Fred Dixon

unread,
Sep 27, 2015, 9:22:56 PM9/27/15
to BigBlueButton-dev
Hi Ed,

In /var/bigbluebutton you'll see folders with the format

196c35981864cf89085fe5cc7a4ede553d5c29c6-1442835391985
9c7f1ea4f4b7e25551ad0161df5b348a1b4dab95-1442835322440
86acf683129bdd1eed8ed1a83db713ccf5427048-1442835218791
3eb87e0fbe21a303bb250b4e98ee55f093e4885b-1442835048933
9c7f1ea4f4b7e25551ad0161df5b348a1b4dab95-1442834473880
86acf683129bdd1eed8ed1a83db713ccf5427048-1442834288873
86acf683129bdd1eed8ed1a83db713ccf5427048-1442833358924
4ccf9ec03179bdad35913e6274d4cc4b4830d35a-1442833293041

Each time a session is started, a corresponding folder is created that follows the above format.  The record and playback infrastructure uses content from these folders, but copies them to a different area, see


Have you taken a closer look at the cronjob

  /etc/cront.daily/bigbluebutton

What files are you trying to delete that are not already handled by the above cron job?


Regards,... Fred


--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-dev.
For more options, visit https://groups.google.com/d/optout.

Ed Bobkov

unread,
Oct 9, 2015, 9:24:01 AM10/9/15
to BigBlueButton-dev
Fred, the problem is that I can get recordings using API and view them (older than 5 days). But in /var/bigbluebutton/ there are only folders that are correct (were created within this 5 days' term). So I can't understand, why the recordings are not deleted and can be get by API?


пятница, 25 сентября 2015 г., 21:05:39 UTC+4 пользователь Ed Bobkov написал:
Files are not deleted now, though 5 ddays' limit is set. But there s no a specific cron job for this action.

HostBBB.com

unread,
Oct 9, 2015, 9:29:39 AM10/9/15
to BigBlueButton-dev
cron doesn't touch the recordings.  just raw/temp files.

/var/bigbluebutton/published is where the recordings are.

you use sudo bbb-record --list to list them

and either delete thru your front end with api call.   or  use the bbb-record --deleteid  xxxxxxxxxxx <-- meeting id

regards,
Stephen

Ed Bobkov

unread,
Oct 9, 2015, 9:48:51 AM10/9/15
to BigBlueButton-dev
ok, I understood. is there a way to delete published recordings that are older than 5 days?


пятница, 25 сентября 2015 г., 21:05:39 UTC+4 пользователь Ed Bobkov написал:
Files are not deleted now, though 5 ddays' limit is set. But there s no a specific cron job for this action.

HostBBB.com

unread,
Oct 9, 2015, 9:55:22 AM10/9/15
to BigBlueButton-dev
You can add a command in cron.daily. that removes them.
But be careful. if you remove some directories accidently recordings may break.

the best way is to use bbb-record to delete since it properly removes everything.

regards,
Stephen

Ed Bobkov

unread,
Oct 9, 2015, 9:59:55 AM10/9/15
to BigBlueButton-dev
Сan you give me a code for this task (using bbb-record)?


пятница, 25 сентября 2015 г., 21:05:39 UTC+4 пользователь Ed Bobkov написал:
Files are not deleted now, though 5 ddays' limit is set. But there s no a specific cron job for this action.
Reply all
Reply to author
Forward
0 new messages