Sometimes you accidentally delete notes/cards in Anki. Ctrl-Z can revert one deletion, but several notes cannot be restored. If you use Anki Sync and haven't done any important edits locally, you should simply delete the collection and redownload it. But what if you don't want to lose local edits/reviews?
Note: If you have Sync enabled, do not sync at any point throughout this instruction. Pull out the network cable, disable Wi-Fi etc, to stop Anki from accidentally uploading your collection midway.
- Close Anki.
- Go to
My Documents
and zip the whole Anki folder. Put the archive in the safe place. - Revert the collection to an older date:
- Go to
My Documents\Anki\YourProfile\Backups
and choose a backup from when you have not yet deleted the cards. - Start Anki, wait until it loads, then double-click the chosen
.apkg
file. - Anki will say this will replace your collection, confirm it.
- You have now reverted the collection to the older date.
- Go to
- Export the broken deck:
- Go to
File->Export
. - Choose "Export format: Anki deck package".
- "Include": the deck where the deleted cards were.
- Include sheduling information and media.
- Press "Export" and save the file somewhere outside of Anki folder.
- Go to
- Restore the current deck state
- Close Anki.
- Delete the
My Documents\Anki
folder - Unpack the zip file you have prepared before
- Make sure the contents of
My Documents\Anki
folder is as before (no doubleAnki\Anki
folders etc)
- Start Anki
- Double-click the saved deck
.apkg
file and let Anki import it - Missing cards are imported with all their history.
Один комментарий
I just wanted to say thank you.