Importing old .anki2 files

2,066 views
Skip to first unread message

Beatrice Borio

unread,
Jan 12, 2016, 4:44:26 PM1/12/16
to AnkiDroid
Hello,
A few weeks ago I had my phone fixed and had to re-install all the apps. I had saved my AnkiDroid folder with the backup files so I could continue using them. Yet when I re-installed AnkiDroid, it was a new version - the latest release, which I believe is AnkiDroid 2.5.4. I don't know which version I had before, but the old backup files are in a .anki2 format, and the new version won't open them. When I go on "restore from backup", it won't show me anything prior to the re-installing. When I go on "import", it requires an .apkg file. I downloaded the latest Desktop version and tried importing the .anki2 file there, but I get an error message saying it's an unknown format. I have changing the desktop version to 2.0.22., which (according to the manual) also works with .anki2 files, but I got the same error message again. I have tried downloading an older version of AnkiDroid which works with .anki2 files, but I can't find any. 
Please help - I've got my final college exams in 3 weeks and over a year of work is saved there :(((
 

Eginhard

unread,
Jan 12, 2016, 5:35:18 PM1/12/16
to anki-a...@googlegroups.com
You only need to place the .anki2 file in your AnkiDroid folder (specified in Settings -> Advanced -> Collection Path), on opening the app, it will automatically load your old collection again.

The .anki2 file is the collection file and you can't import/export it directly other than moving the file manually. On the other hand, .apkg files are created when you manually export a deck or your collection and it's also the format of the backup files. These can indeed be opened from the app via Import/Restore backup.

Eginhard

--
You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anki-android...@googlegroups.com.
To post to this group, send email to anki-a...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/anki-android/8fe47ab3-d3e4-4df7-b170-d0f316f7e0e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tim

unread,
Jan 12, 2016, 7:34:37 PM1/12/16
to AnkiDroid, enno.herman...@gmail.com
One further point: the .anki2 file needs to be named exactly "collection.anki2"


On Wednesday, January 13, 2016 at 7:35:18 AM UTC+9, Eginhard wrote:
You only need to place the .anki2 file in your AnkiDroid folder (specified in Settings -> Advanced -> Collection Path), on opening the app, it will automatically load your old collection again.

The .anki2 file is the collection file and you can't import/export it directly other than moving the file manually. On the other hand, .apkg files are created when you manually export a deck or your collection and it's also the format of the backup files. These can indeed be opened from the app via Import/Restore backup.

Eginhard
On 12 January 2016 at 21:44, Beatrice Borio wrote:
Hello,
A few weeks ago I had my phone fixed and had to re-install all the apps. I had saved my AnkiDroid folder with the backup files so I could continue using them. Yet when I re-installed AnkiDroid, it was a new version - the latest release, which I believe is AnkiDroid 2.5.4. I don't know which version I had before, but the old backup files are in a .anki2 format, and the new version won't open them. When I go on "restore from backup", it won't show me anything prior to the re-installing. When I go on "import", it requires an .apkg file. I downloaded the latest Desktop version and tried importing the .anki2 file there, but I get an error message saying it's an unknown format. I have changing the desktop version to 2.0.22., which (according to the manual) also works with .anki2 files, but I got the same error message again. I have tried downloading an older version of AnkiDroid which works with .anki2 files, but I can't find any. 
Please help - I've got my final college exams in 3 weeks and over a year of work is saved there :(((
 

--
You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anki-android+unsubscribe@googlegroups.com.

Beatrice Borio

unread,
Jan 13, 2016, 2:55:33 AM1/13/16
to anki-a...@googlegroups.com
Thank you - that worked. Only thing is I lost my most recent cards now...I could restore them from backups, but it says this will lead to recent changes being cancelled and I'm afraid of losing my old decks again. What should I do?



On Wednesday, January 13, 2016, Tim <perceptu...@gmail.com> wrote:
> One further point: the .anki2 file needs to be named exactly "collection.anki2"
>
> On Wednesday, January 13, 2016 at 7:35:18 AM UTC+9, Eginhard wrote:
>>
>> You only need to place the .anki2 file in your AnkiDroid folder (specified in Settings -> Advanced -> Collection Path), on opening the app, it will automatically load your old collection again.
>> The .anki2 file is the collection file and you can't import/export it directly other than moving the file manually. On the other hand, .apkg files are created when you manually export a deck or your collection and it's also the format of the backup files. These can indeed be opened from the app via Import/Restore backup.
>> Eginhard
>> On 12 January 2016 at 21:44, Beatrice Borio wrote:
>>>
>>> Hello,
>>> A few weeks ago I had my phone fixed and had to re-install all the apps. I had saved my AnkiDroid folder with the backup files so I could continue using them. Yet when I re-installed AnkiDroid, it was a new version - the latest release, which I believe is AnkiDroid 2.5.4. I don't know which version I had before, but the old backup files are in a .anki2 format, and the new version won't open them. When I go on "restore from backup", it won't show me anything prior to the re-installing. When I go on "import", it requires an .apkg file. I downloaded the latest Desktop version and tried importing the .anki2 file there, but I get an error message saying it's an unknown format. I have changing the desktop version to 2.0.22., which (according to the manual) also works with .anki2 files, but I got the same error message again. I have tried downloading an older version of AnkiDroid which works with .anki2 files, but I can't find any. 
>>> Please help - I've got my final college exams in 3 weeks and over a year of work is saved there :(((
>>>  
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to anki-android...@googlegroups.com.

>>> To post to this group, send email to anki-a...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/msgid/anki-android/8fe47ab3-d3e4-4df7-b170-d0f316f7e0e4%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the Google Groups "AnkiDroid" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/anki-android/AiURHjpDUv0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to anki-android...@googlegroups.com.

> To post to this group, send email to anki-a...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/anki-android/bed34e84-76b4-4aab-9565-f40acb0b39d4%40googlegroups.com.

Tim

unread,
Jan 13, 2016, 3:34:44 AM1/13/16
to AnkiDroid
First of all I recommend making a copy of every Anki file that you have, and copying that over to your computer. Otherwise you run the risk of making a mistake somewhere and losing your data.
You haven't really described your situation (exactly what files you have, where they came from, what content is in them, what you're trying to do, etc.) in much detail so it's hard to give concrete recommendations, but backup files are just stored as apkg files so all of the instructions in the manual on importing apkg files applies to them.

On Wednesday, January 13, 2016 at 4:55:33 PM UTC+9, Beatrice Borio wrote:
Thank you - that worked. Only thing is I lost my most recent cards now...I could restore them from backups, but it says this will lead to recent changes being cancelled and I'm afraid of losing my old decks again. What should I do?


On Wednesday, January 13, 2016, Tim wrote:
> One further point: the .anki2 file needs to be named exactly "collection.anki2"
>
> On Wednesday, January 13, 2016 at 7:35:18 AM UTC+9, Eginhard wrote:
>>
>> You only need to place the .anki2 file in your AnkiDroid folder (specified in Settings -> Advanced -> Collection Path), on opening the app, it will automatically load your old collection again.
>> The .anki2 file is the collection file and you can't import/export it directly other than moving the file manually. On the other hand, .apkg files are created when you manually export a deck or your collection and it's also the format of the backup files. These can indeed be opened from the app via Import/Restore backup.
>> Eginhard
>> On 12 January 2016 at 21:44, Beatrice Borio wrote:
>>>
>>> Hello,
>>> A few weeks ago I had my phone fixed and had to re-install all the apps. I had saved my AnkiDroid folder with the backup files so I could continue using them. Yet when I re-installed AnkiDroid, it was a new version - the latest release, which I believe is AnkiDroid 2.5.4. I don't know which version I had before, but the old backup files are in a .anki2 format, and the new version won't open them. When I go on "restore from backup", it won't show me anything prior to the re-installing. When I go on "import", it requires an .apkg file. I downloaded the latest Desktop version and tried importing the .anki2 file there, but I get an error message saying it's an unknown format. I have changing the desktop version to 2.0.22., which (according to the manual) also works with .anki2 files, but I got the same error message again. I have tried downloading an older version of AnkiDroid which works with .anki2 files, but I can't find any. 
>>> Please help - I've got my final college exams in 3 weeks and over a year of work is saved there :(((
>>>  
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to anki-android+unsubscribe@googlegroups.com.

>>> To post to this group, send email to anki-a...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/msgid/anki-android/8fe47ab3-d3e4-4df7-b170-d0f316f7e0e4%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the Google Groups "AnkiDroid" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/anki-android/AiURHjpDUv0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to anki-android+unsubscribe@googlegroups.com.

Beatrice Borio

unread,
Jan 13, 2016, 5:50:21 AM1/13/16
to anki-a...@googlegroups.com
1) I have two sets of backup files: the ones which came from the version I had before re-installing Anki, in the corresponding AnkiDroid folder which I had saved on my external sd card and computer, and the new ones which belong to the new version I am using now and are on another AnkiDroid folder on my phone, which I have now saved on my computer.
2)  The files in the old AnkiDroid folder are: collection.anki2, collection.media (database file) and, in the Backup folder, collection-2015-11-28-17-01.anki2, collection-2015-11-28-00-12.anki2, and collection-2015-12-01-14-05.anki2.
3)  The files in the new AnkiDroid folder are: collection-2015-12-15-17-47, collection.media.ad.db2 and collection.media.ad.db2-journal, collection, collection.anki2 e collection.anki2-journal, collection (Text document), and, in the Backup folder, a number of similar files with different dates, the most recent ones being collection-2016-01-12-22-31 and collection-2016-01-13-08-36. 
4) All the decks are basic and reversed cards with words in different languages and their translations, no media.
5) What I was trying to do was get back the decks from the version I used before Anki was re-installed, and thanks to you guys I do have them back now. But  I have lost the cards I've created over the last 2 o 3 days. I have tried restoring them from the backup but lost all the old cards again, so I repeated the process to get my old cards back. It's not that terrible - I prefer losing a few days of work than several months. But the strange thing is that, as I mentioned under 3, the files in the Backup folder in the new AnkiDroid folder date back to yesterday evening and this morning.
Thank you!

On Wed, Jan 13, 2016 at 9:34 AM, Tim <perceptu...@gmail.com> wrote:
First of all I recommend making a copy of every Anki file that you have, and copying that over to your computer. Otherwise you run the risk of making a mistake somewhere and losing your data.
You haven't really described your situation (exactly what files you have, where they came from, what content is in them, what you're trying to do, etc.) in much detail so it's hard to give concrete recommendations, but backup files are just stored as apkg files so all of the instructions in the manual on importing apkg files applies to them.

On Wednesday, January 13, 2016 at 4:55:33 PM UTC+9, Beatrice Borio wrote:
Thank you - that worked. Only thing is I lost my most recent cards now...I could restore them from backups, but it says this will lead to recent changes being cancelled and I'm afraid of losing my old decks again. What should I do?


On Wednesday, January 13, 2016, Tim wrote:
> One further point: the .anki2 file needs to be named exactly "collection.anki2"
>
> On Wednesday, January 13, 2016 at 7:35:18 AM UTC+9, Eginhard wrote:
>>
>> You only need to place the .anki2 file in your AnkiDroid folder (specified in Settings -> Advanced -> Collection Path), on opening the app, it will automatically load your old collection again.
>> The .anki2 file is the collection file and you can't import/export it directly other than moving the file manually. On the other hand, .apkg files are created when you manually export a deck or your collection and it's also the format of the backup files. These can indeed be opened from the app via Import/Restore backup.
>> Eginhard
>> On 12 January 2016 at 21:44, Beatrice Borio wrote:
>>>
>>> Hello,
>>> A few weeks ago I had my phone fixed and had to re-install all the apps. I had saved my AnkiDroid folder with the backup files so I could continue using them. Yet when I re-installed AnkiDroid, it was a new version - the latest release, which I believe is AnkiDroid 2.5.4. I don't know which version I had before, but the old backup files are in a .anki2 format, and the new version won't open them. When I go on "restore from backup", it won't show me anything prior to the re-installing. When I go on "import", it requires an .apkg file. I downloaded the latest Desktop version and tried importing the .anki2 file there, but I get an error message saying it's an unknown format. I have changing the desktop version to 2.0.22., which (according to the manual) also works with .anki2 files, but I got the same error message again. I have tried downloading an older version of AnkiDroid which works with .anki2 files, but I can't find any. 
>>> Please help - I've got my final college exams in 3 weeks and over a year of work is saved there :(((
>>>  
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to anki-android...@googlegroups.com.

>>> To post to this group, send email to anki-a...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/msgid/anki-android/8fe47ab3-d3e4-4df7-b170-d0f316f7e0e4%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the Google Groups "AnkiDroid" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/anki-android/AiURHjpDUv0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to anki-android...@googlegroups.com.

> To post to this group, send email to anki-a...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/anki-android/bed34e84-76b4-4aab-9565-f40acb0b39d4%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

--
You received this message because you are subscribed to a topic in the Google Groups "AnkiDroid" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/anki-android/AiURHjpDUv0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to anki-android...@googlegroups.com.

To post to this group, send email to anki-a...@googlegroups.com.

Eginhard

unread,
Jan 13, 2016, 6:04:50 AM1/13/16
to anki-a...@googlegroups.com
If you created the new cards in the last days on the newly installed, "empty" version, you can use "Export" or "Export deck" to get them as an apkg and then import them after restoring your old collection. Otherwise you could try restoring the different backups and see if one of them has the lost files (this might be easier to do via Anki Desktop). Just make sure you have your files backed up in a separate location as well, so that the new backups that are created when you try things out don't overwrite the important ones. Maybe you still find the cards somewhere ;)

Eginhard

Beatrice Borio

unread,
Jan 13, 2016, 6:28:09 AM1/13/16
to anki-a...@googlegroups.com
I have restored yesterday's backup, exported the new decks and then restored the old backup again. Then I tried to import the new ones but I got a warning that if I do that, the collection I currently have will be overwritten. Is there a way to have both the old and the new decks back at all?

Tim

unread,
Jan 13, 2016, 6:32:34 AM1/13/16
to AnkiDroid
Please refer to the link I previously gave you

Beatrice Borio

unread,
Jan 13, 2016, 6:43:13 AM1/13/16
to anki-a...@googlegroups.com
IT WORKED - I have all the decks back now! Thank you so much! 

On Wed, Jan 13, 2016 at 12:32 PM, Tim <perceptu...@gmail.com> wrote:
Please refer to the link I previously gave you
--
You received this message because you are subscribed to a topic in the Google Groups "AnkiDroid" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/anki-android/AiURHjpDUv0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to anki-android...@googlegroups.com.
To post to this group, send email to anki-a...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages