ThisCalculator

Everyday

Obsidian Vault Backup: Save, Settings, Recover Files

Updated · Standard formula, shown below

Obsidian stores your notes as plain Markdown files in a local folder (your vault), and it does not have a built-in cloud backup. You can protect your notes by copying that folder to an external drive or cloud service, and you can recover deleted or changed files using Obsidian’s File Recovery feature or your operating system’s versioning tools. This article explains how to set up reliable backups, where Obsidian keeps its settings, and how to restore files when something goes wrong.

How Obsidian Stores Your Data

Every note you create in Obsidian is a plain text file with a .md extension, saved in a folder you chose when you created the vault. Attachments (images, PDFs, audio) are stored in the same vault folder, usually in an attachments subfolder. Obsidian also keeps a hidden .obsidian folder inside the vault that contains your settings, themes, hotkeys, and enabled community plugins. That hidden folder is part of the vault, so backing up the entire vault folder captures both your notes and your configuration.

Because the files are plain text, you can open them with any text editor, and you can sync them with any tool that handles regular folders—there is no proprietary database to export. This design makes backup straightforward: you are essentially backing up a normal folder of files.

Built-in File Recovery (Not a Backup)

Obsidian includes a File Recovery feature that snapshots your notes as you edit them. It is not a substitute for a real backup, but it can rescue you from accidental deletions or unwanted changes. By default, Obsidian keeps snapshots for 7 days and stores them locally in the vault’s .obsidian/plugins/obsidian-recovery folder. To use it:

  1. Open Settings → File Recovery.
  2. Enable the feature if it is off (it is on by default).
  3. To restore a file, open the command palette (Ctrl/Cmd+P) and run “File Recovery: Open”.
  4. Select the note you want to recover, choose a snapshot from the list, and click “Restore”.

Important: File Recovery snapshots are stored inside the vault. If you delete the vault folder entirely, you lose the snapshots too. That is why you still need an external backup.

Manual Backup: Copy the Vault Folder

The simplest backup is to copy your vault folder to another location. You can do this manually or with a script. To manually back up:

  1. Close Obsidian (this avoids file locks and ensures all files are written).
  2. Copy the entire vault folder—including the hidden .obsidian folder—to an external drive, a network location, or a cloud-synced folder.
  3. To restore, copy the backup back to your computer and open it as a vault in Obsidian.

If you use cloud sync (like Dropbox or Google Drive), you can place your vault inside that synced folder, and the service will back it up automatically. However, be aware that cloud sync is not the same as versioned backup—if you delete a file, the deletion may sync to the cloud and remove the only copy. Many cloud services offer version history (e.g., Dropbox’s version history), but you must enable it and know how to use it.

Automated Backup with Plugins or Scripts

To avoid remembering to back up manually, you can automate the process. Options include:

  • Obsidian community plugins like “Obsidian Git” (which commits your vault to a local Git repository and can push to a remote like GitHub) or “Remotely Save” (which syncs to S3, Dropbox, or WebDAV). These run automatically on a schedule.
  • Operating system tools: On Windows, you can use Task Scheduler to run a copy command; on macOS, use Automator or launchd; on Linux, use cron. For example, a simple rsync command can mirror your vault to an external drive.
  • Third-party backup software like Backblaze, Arq, or Duplicati can back up the vault folder continuously.

When choosing a method, consider whether you want versioning (the ability to go back to an older version of a file) or just a current snapshot. Versioning is crucial if you accidentally overwrite a note with wrong content.

Restoring Files from Backup

Restoring depends on where your backup lives. If you have a simple folder copy, just copy it back. If you use a cloud service with version history, you can restore an older version from the service’s web interface. If you use Obsidian Git, you can restore a file from a previous commit using Git commands or the plugin’s interface. If you use File Recovery (within the vault), you can recover a note even without an external backup, as long as the vault folder still exists.

For a lost or corrupted vault (e.g., hard drive failure), you need an external backup. If you have none, you may be able to recover files from the recycle bin or trash, or from your cloud service’s trash. But these are not guaranteed—so regular backups are essential.

Where Are Obsidian Settings Stored?

Obsidian stores all its settings (appearance, hotkeys, plugins, etc.) in the .obsidian folder inside each vault. This means settings are per-vault, not global. If you want to transfer your setup to a new computer, copy the entire vault folder, including .obsidian. If you only want to copy settings, you can copy the .obsidian folder to another vault, but be careful: plugin settings may reference absolute paths or plugin versions that differ.

Obsidian also stores some global data (like the list of recent vaults) in your user profile directory, but that is not necessary for backing up your notes.

Common Backup Mistakes and How to Avoid Them

  • Only backing up the notes, not the .obsidian folder – you lose your settings and plugins.
  • Not testing your backup – a backup you never restore from is not reliable. Periodically restore to a test folder and open it in Obsidian.
  • Relying solely on File Recovery – it is not a backup; it is local and temporary.
  • Syncing without versioning – if you delete a note, the deletion propagates to all devices. Use a service with version history or a versioned backup.
  • Ignoring the hidden folder – on some systems, hidden files are not copied by default. Ensure your backup tool includes hidden files.

Frequently Asked Questions

Does Obsidian have a built-in cloud backup?

No. Obsidian is a local-first app; it does not provide cloud storage. You must use your own cloud service (Dropbox, Google Drive, OneDrive, etc.) or a backup tool to store your vault off-site.

Can I recover a deleted note if I have no backup?

If the note was deleted within the last 7 days and you have File Recovery enabled, you can recover it from the File Recovery panel. If the vault folder was also deleted, you may be able to recover the file from your operating system’s recycle bin or from your cloud service’s trash, but this is not guaranteed.

What is the best way to back up Obsidian vaults?

The best method is to use a versioned backup that runs automatically. For example, use Obsidian Git to commit to a private GitHub repository, or use a cloud service with version history (like Dropbox). This gives you both off-site storage and the ability to roll back to older versions.

Does backing up the .obsidian folder include my plugins?

Yes, the .obsidian folder contains the plugin files and their settings. However, if you move to a different operating system, some plugins may not be compatible or may require reinstallation.

Is it safe to store my vault on a cloud drive like Dropbox?

Yes, but be aware of sync conflicts. If you edit the same note on two devices at the same time, you may get a conflict file (e.g., “note (conflicted) 2024-01-01.md”). Also, cloud sync is not a backup—if you accidentally delete a file, the deletion syncs. Enable version history on your cloud service to mitigate this.

How do I restore a backup to a new computer?

Copy the entire vault folder (including .obsidian) to the new computer, then open Obsidian and choose “Open folder as vault” and select that folder. Obsidian will read the settings and plugins from the .obsidian folder.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.