Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How is data managed in the node? #132

Open
Motion0112 opened this issue Dec 20, 2024 · 3 comments
Open

How is data managed in the node? #132

Motion0112 opened this issue Dec 20, 2024 · 3 comments

Comments

@Motion0112
Copy link

Hi, I'm considering installing Databag on a RB3B, but I wanted to know how is the data managed and what storage is recommended. Should I use an ssd instead of the micro SD? What kind of data is storaged on the node? In the case of, for example, photos being storaged in the node, does Databag delete them over a certain time or continuous using space until it runs out? What happens in that case?
Sorry if I'm making to many questions, but I'm new on self hosting I'm general and I don't know what to expect.
Thanks in advance.

@balzack
Copy link
Owner

balzack commented Dec 20, 2024

Hi, thanks for your interest in this project.

The node stores relational data in a sqlite database and photos (for example) on the filesystem. If you have a free SSD, that will give you better performance but both should work.

Data is not deleted from the node unless instructed by the users. A user for example can delete a post or a full thread which will delete all associated data.

I am considering adding a feature, where the admin can choose to delete all data > X years, but this has not been added yet.

@Motion0112
Copy link
Author

Thanks for the fast response.
Yes, it would be pretty handy as an admin ti be able to automate the server so it deletes old/unused data. I guess I still can access the filesystem and delete data if needed.
What would happen if the the storage runs out?

@balzack
Copy link
Owner

balzack commented Dec 20, 2024

If storage runs out then message posts would fail. Users would then need to make space before new messages could be posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants