Code Monkey home page Code Monkey logo

Comments (10)

jnar avatar jnar commented on September 18, 2024 1

Im going to try that, the thing is the server is low on disk space so I hope we can use this setting to save some space.

Thank you, by the way nice job with this script

from bbb-aws-s3.

jnar avatar jnar commented on September 18, 2024

Ok now checking with bbb-record --watch I see that only shows "podcast,screenshare" but not presentation so question is not about greenlight but about bbb

from bbb-aws-s3.

rohitcoder avatar rohitcoder commented on September 18, 2024

What is the value of DELETE_SERVER_FILES ? on Line 6 in your edited code of bbb-s3.py

is it set to True?

from bbb-aws-s3.

jnar avatar jnar commented on September 18, 2024

Yes, I have set to true that value

from bbb-aws-s3.

rohitcoder avatar rohitcoder commented on September 18, 2024

Just set Value to False and then check if everything works properly.

I never checked it with GreenLight but it seems, greenlight only shows those records whose folders are present in bbb instance.

Just set value to false and try again, it will do everything same as this script is made for, it will not delete local copies for now.

Just test it, and I will push new codes.

from bbb-aws-s3.

jnar avatar jnar commented on September 18, 2024

Ok I have an update here, did some changes in script...

First I declared an array for filetypes I dont want to upload:
KEEP_FILE_EXTENSIONS=['csv','json','xml','svg','png']

Then I put a new condition before deleting files:
extonly=os.path.splitext(elem)[1][1:]
if(extonly not in KEEP_FILE_EXTENSIONS):
remove(elem)

This way files like metadata.xml and thumbnails stay in server and nothing looks weird in GL.

This is what I got so far, Im thinking in the best way to manage this to prevent an impact in performance later if folders grow much.

from bbb-aws-s3.

rohitcoder avatar rohitcoder commented on September 18, 2024

Can you just try it by uploading everything of a meeting folder to s3 and just keeping a blank folder with that meeting Name?

Let's see if that works, then you could save more space!

For example: If there is a meeting folder named 75798d75e10388ae7e43f4e59de0d956-12121212 and it contains multiple files, then run bbb-s3.py script and upload everything to s3 and just keep that folder empty (but that folder should be there.) and then see, if this works, In case it not works i think we need to change routing of file serving URL something like we did in this part (from our docs)
Screenshot 2020-08-08 at 10 25 37 PM

from bbb-aws-s3.

jnar avatar jnar commented on September 18, 2024

I considered that approach but there are some thumbnails that GL uses and look for them in local directory so I decided too keep all files except for big ones

from bbb-aws-s3.

rohitcoder avatar rohitcoder commented on September 18, 2024

Ok, can you please create a new bbb-s3-gL.py and add PR?

Or let me know, if you want to share final bbb-s3-gl.py via pastebin.com ?

It would be good for other ones

from bbb-aws-s3.

jnar avatar jnar commented on September 18, 2024

Sure, Im gonna share when I feel its kinda ready

from bbb-aws-s3.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.