Keep files (git, svn...) in add-on folders

AnkiWeb addon 225953877

Allows keeping configurable files or folders, by default user_files, .git, .gitignore, and .svn, inside add-on folders when add-ons update.
AI-generated summary; may contain mistakes.

backup-maintenance

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2020-03-09
Anki versions
2.1.20~
Description language
en

Maintenance

abandoned

  • Last update or commit was 2397 days before the snapshot (2020-03-09).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.02.1.20+2020-03-09
History across monthly snapshots

Loading…

Similar addons

Tag Analytics

Analyzes tag usage and card distribution in Anki, offering customizable settings, review insights, and debug logging to optimize tag organization and study patterns.

statisticstagging

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.1~ Updated 2025-05-20
NoteSync

Synchronizes content across Anki notes in unidirectional mode using note IDs and templates, or bidirectional mode using sync IDs, with configurable conflict handling.

card-creationnote-management

Rating 1 πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 2 Anki 25.07.5~ Updated 2026-01-09
Type before you answer

Adds an optional multiline typing box in Anki's reviewer bottom bar, keeps typed text visible on the answer side, resets each question, and offers a Type menu toggle.

review-flowquizfork-or-reupload

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 ⭐ 0 Anki 26.05~ Updated 2026-07-11

README

Keep files not in add-on folder not in user files

Rationale

I want to keep a .git folder in my add-on folder, and still be able to update my add-ons. When an add-on is updated, the entire content of the add-on's folder is deleted, which means that .git is deleted too.

This add-on ensure that some files are keep. By default it's user_files (as by default in anki), .git, .gitignore and .svn.

Configuration

You can add or remove some files/folder to keep.

Internal

This change the methods aqt.addons.AddonManager.backupUserFiles and aqt.addons.AddonManager.restoreUserFiles.

Version 2.0

None

Links, licence and credits

Key Value
Copyright Arthur Milchior arthur@milchior.fr
Based on Anki code by Damien Elmes anki@ichi2.net
License GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
Source in https://github.com/Arthur-Milchior/anki-keep-files-in-addon-Folder
Addon number 225953877