JabRef
v5
v5
  • JabRef Bibliography Management
  • Installation
  • Getting started
  • Collect
    • Add entry manually
    • Add entry using an ID
    • Add entry using reference text
    • Searching externally using Online Services
    • Add entry using PDFs
    • Browser Extension
    • Import
      • Custom import filters
      • Import inspection window
  • Organize
    • Edit an entry
    • Groups
    • Keywords
    • Mark and grade
    • Comment on an entry
    • Searching within the library
    • Complete information using online databases
    • Manage associated files
    • Manage field names and their content
    • Best practices
    • Cleanup entries
    • Check integrity
    • Find duplicates
    • Merge entries
    • Save actions
  • Cite
    • BibTeX and biblatex
    • Pushing to external editor application
    • Export to Microsoft Word
    • OpenOffice/LibreOffice integration
  • Share
    • Sharing a Bib(la)TeX Library
    • Shared SQL Database
      • Migration of pre-3.6 SQL databases into a shared SQL database
    • Export
      • Custom export filters
    • Send as email
  • Configuration
    • Customize the citation key generator
    • Customize entry types
    • Customize general fields
    • Customize key bindings
    • Library properties
    • Entry preview setup
    • Manage external file types
    • Manage protected terms
    • The string editor
  • Advanced information
    • Main Window
    • Entry Editor
      • Links to other entries
      • The Bibtex / Biblatex source tab
      • The 'owner' field
      • Time stamp field
      • LaTeX Citations Tab
    • About BibTeX and its fields
    • Strings
    • Field content selector
    • URL and DOI links in JabRef
    • Command line use and options
    • Automatic Backup (.sav and .bak) and Autosave
    • XMP metadata support in JabRef
    • Remote operation
    • Custom themes
    • Journal abbreviations
    • New subdatabase based on AUX file
    • How to expand first names of an entry
    • Debugging your library file
    • Resources
    • License
    • Knowledge
      • MS Office Bibliography XML format
      • Comparison of the Medline (txt), Medline (xml), and RIS format
      • EndNote Export Filter
  • Frequently Asked Questions
    • Linux
    • Mac OS X
    • Windows
  • Discussion Forum
  • Contribute to JabRef
    • How to Improve the Help Page
    • How to translate the JabRef User Interface
Powered by GitBook
On this page
  • What are .sav, .bak and .tmp files?
  • Automatic backup of current library edits
  • Automatic saving of the current library

Was this helpful?

Edit on GitHub
Export as PDF
  1. Advanced information

Automatic Backup (.sav and .bak) and Autosave

PreviousCommand line use and optionsNextXMP metadata support in JabRef

Was this helpful?

Changelog:

JabRef 5.8 Major rework and a change in what .bak and .sav denote. Henceforth, .sav is a temporarily written file. .bak is a backup file.

JabRef 5.1 To reduce the amount of configuration options, the possibility to disable the creation of .bak files was removed. JabRef 3.7 First introduction of the autosave and backup features. .sav is the automatic backup feature. .bak preserves the last state of the library after saving

What are .sav, .bak and .tmp files?

JabRef generates .sav, .bak and .tmp files while working.

  • .bak stands for the automatic backup feature: Each 20 seconds, after a change to the library, the current state of the library is saved to a .bak file. JabRef keeps 10 older versions of a .bak file in the .

  • .sav preserves the last state of the library after saving. Thus, one can go back one save command in the history. Used when writing the .bib file. Used for copying the .bib away before overwriting on save.

  • .tmp is a temporary file with changes that are supposed to be written to the .bib file.

Rough outline of what's happening during a write to the .bib file: A .tmp will be written --> .bib copies to .sav --> .tmp copies to .bib --> .sav gets deleted --> 20 seconds later, a copy of the .bib file will be stored as.bak file in the user data dir.

How to ignore JabRef's .sav and .bak files in Git

By using the service, you can generate an appropriate .gitignore file by opening . A gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected; See for further details.

Automatic backup of current library edits

This functionality runs in the background while you are working on a bibliographic database. It makes a backup copy (the .bak file) and keeps that up-to-date on every user interaction. For instance, when you change a field the new value would get saved into the backup copy. Assuming that JabRef crashes while you are working on a BibTeX database. When you try again to open the file JabRef crashed with you will get the following dialog:

Now you have the possibility to restore and review your changes which would normally get lost.

Where can I find the backup files?

  • Unix/Linux: /home/<username>/.local/share/org.jabref/jabref

  • Windows: Windows 7/10: C:\Users\<Account>\AppData\org.jabref\jabref Alternatively, open the run dialogue by pressing Windows+R, then enter %APPDATA%\..\Local\org.jabref\jabref Windows XP: C:\Documents and Settings\<Account>\Application Data\Local Settings\org.jabref\jabref>

  • Mac OS X: /Users/username/Library/Application Support/org.jabref/jabref

Automatic saving of the current library

JabRef offers automatic saving of the library. No need to click on File --> Save or pressing Ctrl+S anymore: The opened database are saved automatically without manual intervention.

In case the .bib file should automatically be saved on each change, you can direct JabRef to do so. This feature needs to be activated in the preferences:

For shared remote libraries and more advanced history, we recommend to use .

The backup files (.bak) can be found in the .

git as version control system
user data dir
user data dir
gitignore.io
https://www.gitignore.io/api/jabref
https://git-scm.com/docs/gitignore
Screenshot of the backup found dialog
Screenshot of the autosave preferences