this post was submitted on 29 May 2024
27 points (88.6% liked)

Ask Lemmy

26638 readers
2426 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either [email protected] or [email protected]. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email [email protected]. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
 

Hi,

I want to export all of my data including all the post, comment, post I upvoted, list of communities I subscribed to, log of my IP address, all of my logins. In short all the data I gave to the instance I am using.

is there a way to export all of these data to a JSON file or something?

Thank you in advance!

all 11 comments
sorted by: hot top controversial new old
[–] [email protected] 8 points 5 months ago (1 children)
[–] [email protected] 3 points 5 months ago (1 children)

Maybe I’m in over my head, but I’ve been learning rust for a few months, and this seems like a fun thing to implement.

[–] [email protected] 2 points 5 months ago (1 children)

Go Ahead. I'm still struggling to find the time to learn Rust. I read the first few chapters of the book, but I'm a bit stuck due to too many side-projects. 😆

With Lemmy, I'd advise you to ask first. Lots of open-source projects gladly accept merge requests... But I think the Lemmy developers/community is a bit different. As far as I know a few people have been burned because they put in days of work and their requests didn't get accepted. That shouldn't stop you, I'd just say ask the devs first so you don't waste your time.

[–] [email protected] 3 points 5 months ago

Thanks for letting me know. I’ll definitely ask them first. Good luck with your side projects 😁

[–] [email protected] 2 points 5 months ago (1 children)
[–] [email protected] 4 points 5 months ago* (last edited 5 months ago) (1 children)

I'm happy to export your data for you from the database if you want it, but I don't have an easy way to do that beyond writing queries by hand for each table. Is there some subset specifically that you're looking for?

We don't log any IP addresses except web server access logs temporarily, and we can't identify which log entries are which users. There's no login history in the DB, it doesn't even log the last login for a user.

If you're willing to write the queries for the data you want, I don't mind reviewing them and then giving you the output.

[–] [email protected] 4 points 5 months ago

since you don't log IP addresses I can get most of the stuff using Lemmy api. no need to write SQL queries.

Thank you for the response <3

[–] [email protected] 1 points 5 months ago

Probably best to ask the admin on their own instance about that.

[–] [email protected] 1 points 5 months ago

Generally, if your admin set something like that up, they will have instructions in their privacy policy.

[–] [email protected] 1 points 5 months ago

You can get a lot of that through Lemmy's API

I imagine that only the admins can give you logs of logins and IP addresses though.