Skip to main content
Topic: cannot find out Anki's stored data (Read 257 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

cannot find out Anki's stored data

Both my root directory and home directory were  installed on an SSD. Several months ago, I installed Anki from AUR via yay.

According to Anki's manual,

"On Linux, recent Anki versions store your data in ~/.local/share/Anki2, or $XDG_DATA_HOME/Anki2 if you have set a custom data path. If you are using a third-party Flatpak build, your files will be in ~/.var/app/net.ankiweb.Anki/data/Anki2/. Older versions of Anki stored your files in ~/Documents/Anki or ~/Anki.

Within the Anki folder, the program-level and profile-level preferences are stored in a file called prefs.db.

There is also a separate folder for each profile. The folder contains:

Your notes, decks, cards and so on in a file called collection.anki2

Your audio and images in a collection.media folder

A backups folder

Some system files

You should never copy or move your collection while Anki is open. Doing so could cause your collection to become corrupt. Please do not move or modify the other files in the folder either."

My system couldn't boot last week, possibly due to SSD corruption. Booting from a live Artix CD and browsing my home or root directories and sub-directories, nowhere were I able to locate Anki's files.

~/.local/share contains recently-used.xbel and five directories, cinnamon, epiphany, gvfs-metadata, keyrings, nemo. The five directories don't contain any Anki sub-folders.

There are lost+found and a directory with my user name under  $XDG_DATA_HOME, which cannot be accessed with sudo ls

There is no  ~/.var/app/net.ankiweb.Anki/data/Anki2/ or ~/Documents/Anki or ~/Anki

I don't think the Anki manual gives the correct path in my AUR anki case. I was wondering whether anyone could point out the correct directory path. Thanks everyone for their attention and assistance.

Re: cannot find out Anki's stored data

Reply #1
Unfortunately I don't have the answer to your question.

On the other hand, I saw that anki is available on the chaotic-aur repository:
https://aur.chaotic.cx/

Code: [Select]
yay anki
chaotic-aur/anki 25.02-1 (13.9 MiB 46.8 MiB)
    Helps you remember facts (like words/phrases in a foreign language) efficiently


But I would like to draw your attention to a very handy utility that I have used at work: Zim
But I don't think Zim is an equivalent of Anki...
https://zim-wiki.org/

Re: cannot find out Anki's stored data

Reply #2
zim is in the omniverse repo, so it's easy to check it out

artist
Linux is simple; use Artix, or Submit Your System To Evil Malicious D(a)emons

Re: cannot find out Anki's stored data

Reply #3
Please excuse me if I am wrong but it sounds a bit like you are searching for the files manually?
Have you tried to run find to search the whole device for a known directory or file name?

Since we are recommending alternatives: I have not used Anki for 10 years myself after trying Mnemosyne.
I did not want to bother with learning another program but Anki became so bloated and added all the scary online features.
Mnemosyne has no fancy graphics but turned out easy to use, behaves like Anki did in the early days, can use it without a mouse and the maintainer(s?) on github are fast and friendly.