Obsidian plugin ยท 4.18.2

Backup, restore, and removal

Back up, restore, reset, and uninstall TaskNotes while protecting task notes, views, settings, and integration data.

TaskNotes keeps task content in your vault and configuration in the plugin data file. A complete backup includes both.

What to back up#

Data Typical location Why it matters
Task notes Your configured task folders Titles, properties, details, recurrence, and time entries
Base views TaskNotes/Views/ or custom paths Filters, formulas, layout, and custom views
Plugin settings .obsidian/plugins/tasknotes/data.json Field mapping, statuses, defaults, integrations, and view command paths
Daily notes Your daily-note folder Pomodoro history when daily-note storage is enabled
mdbase configuration tasknotes.yaml, mdbase.yaml, .mdbase/, configured type/contract folders, _schemas/, pack locks/provisions, and .tasknotes/migrations/ when configured Shared collection metadata, provenance, and migration recovery copies

Treat data.json as sensitive because integration configuration can include private URLs, legacy credentials, or tokens. In v4, the HTTP API token is stored there. In the v5 beta, the HTTP API token is kept in Obsidian Secret Storage on each device, alongside calendar credentials and account tokens. Secret Storage is not included in a vault backup or synced between devices; reconnect integrations and update API clients when restoring onto a new device. Store backups accordingly.

Create a restorable backup#

  1. Close Obsidian or disable TaskNotes so settings are not being written.
  2. Copy the entire vault, including hidden files.
  3. Verify the backup contains .obsidian/plugins/tasknotes/data.json.
  4. Keep at least one version from before a migration or bulk edit.

File-history sync is useful, but it is not a substitute for a separate tested backup.

Restore#

  1. Close Obsidian.
  2. Restore task notes and Base files first.
  3. Restore .obsidian/plugins/tasknotes/data.json if you also need the previous settings.
  4. Reopen Obsidian and confirm Bases is enabled.
  5. Run TaskNotes: Refresh cache and open one default Base.

If provider credentials have expired or were intentionally excluded from the backup, reconnect those integrations instead of restoring stale tokens.

Interrupted mdbase metadata updates#

TaskNotes journals v0.2 and beta metadata upgrades and automatically recovers interrupted writes on restart. Replacements on desktop and mobile move the actual revision into .tasknotes/migrations/metadata-swaps/ before publishing the staged file to an empty path. Swap journals retain the expected original, intended bytes, stage and recovery paths. If a restart finds an empty active path with its moved original present, it restores that revision through the same verified publication path; the enclosing upgrade can then recover. Native filesystem publication refuses an occupied destination.

If a file has changed externally, recovery stops and the notice lists the pending journal, backup folder, and blocked file:

  1. Keep the journal, staged files, and recovery copies. Close Obsidian on all syncing devices and back up the current vault.
  2. Compare the active files with the journal and backup manifest. Preserve external edits separately before restoring a coherent set of configuration, task type, and contract/schema resources with matching plugin settings.
  3. Do not delete a pending journal or restore only the contract file to bypass the conflict. Resolve permissions or the conflicting revision, then reload TaskNotes.

Task notes are not rewritten by metadata migration.

On storage without native Node filesystem access, migration uses the adapter's empty-destination move. TaskNotes moves a verified publication copy and compares the active bytes with the retained intended stage. The displaced original, stage and journal remain until read-back passes; divergence raises a conflict notice and retains those files for review.

An iOS/Android adapter that implements its destination check separately from its rename still has a residual check-then-rename window. A concurrent arrival during that window can be overwritten, and matching final read-back cannot reveal that lost arrival. Read-back therefore does not make this path atomic. Finish syncing before migration, avoid metadata updates from other devices while it runs, and keep a separate full-vault backup and file history. If a revision is missing, preserve the current vault and recover it from your independent backup or sync history rather than assuming the migration journal captured it.

See Upgrading from v4 to v5 for duplicate-provider and symlink checks.

Reset configuration safely#

Do not delete data.json as a first troubleshooting step.

  1. Close Obsidian.
  2. Rename data.json to data.json.backup-YYYY-MM-DD.
  3. Reopen Obsidian and test with fresh defaults.
  4. Restore the backup while Obsidian is closed if the reset does not help.

A reset affects settings, configured statuses and priorities, integration state, saved views, and plugin-stored Pomodoro history. It does not delete task Markdown files.

Uninstall#

Disabling or uninstalling TaskNotes leaves task notes and .base files in the vault. After uninstalling, remove generated folders only if you have inspected them and confirmed they contain no content you want to keep.

To remove plugin settings as well, close Obsidian and remove .obsidian/plugins/tasknotes/ after making a backup. Task metadata remains readable YAML, but TaskNotes-specific Base view types and interactive widgets will no longer render.

Recovery checklist#

  • Missing tasks: restore the note files, then verify task identification and excluded folders.
  • Missing settings: restore data.json with Obsidian closed.
  • Broken default views: back up custom edits before regenerating the configured default Base files. In v4, use General โ†’ Views & base files; in v5, search settings for Update default base files.
  • Broken custom views: restore the individual .base files from history.
  • Lost Pomodoro history: restore the configured storage source, which may be plugin data or daily-note frontmatter.
Source: tasknotes.dev:content/obsidian/guides/backup-recovery.mdView source