AnkiBackup

Latest Version: 0.4.1

Backing up your Anki decks is really important, since you build up a lot of useful scheduling information. But it can be somewhat difficult for the average user, even if it’s gotten easier in 2.0, so I wrote a simple Python script called AnkiBackup. Installation instructions are below, depending on your operating system.

Linux
Grab the source code, set the executable bit (chmod +x /path/to/file), and run. (If your browser opens a page of source code, you may need to right-click the link and choose “Save Link As.”)

Mac OS X

  1. Download the source code. (If your browser opens a page of code, you may need to right-click the link and choose “Save Link As.”)
  2. Set the script as executable: open a terminal (Applications → Utilities → Terminal), type sudo chmod 755 and a space afterwards, then drag and drop the file onto the terminal window and press Enter. Supply your password if necessary. If this does not work, please contact me, as I don’t have a Mac and am still trying to figure out exactly what needs to be done.
  3. Double-click to run the program.

Windows
Unfortunately, Windows doesn’t come with Python installed by default, so you may have to install it first. It’s not very difficult, though.

  1. Download and install Python (see its website for more information).
  2. Grab the source code and run by double-clicking on it. (If your browser opens a page of code, you may need to right-click the link and choose “Save Link As.”)

More Information
All you need to do to back up once you get the program running is to press Enter. The backup will be created on your desktop by default; you should put it on a different drive than your main hard drive in case it crashes. To do this, you can either copy it to an external drive afterwards or change the destination by typing o when prompted to change options. You should back up your decks regularly, preferably at least once a week, but any backup at all is better than none.

If AnkiBackup doesn’t work properly on your system (for instance, if it can’t find where your Anki decks are stored), please contact me using the information below so that I can update the program. Other questions, comments, or angry complaints are welcome as well. If you want to make improvements or wish to view the readme or license, I have a GitHub repo.

License
AnkiBackup is licensed under the MIT/X11 license.

Changes

  • Version 0.4.1 fixed an indentation error. If version 0.4 worked fine for you, there is no need to update.
  • Version 0.4 was a general cleanup and update for Anki 2.0.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>