Vault Splitter

A small command line utility for splitting up your Obsidian vaults.

1 Stars
GitHub

Obsidian Vault Splitter

A small command line utility for splitting up your Obsidian vaults. Allows you to select one note as the root, and then recursively grabs all of the notes it references.

Requires Python 3.10 or later.

CAUTION: Make sure to back up your vault before splitting it.

usage: vault-splitter.py [-h] [-cp PATH] [-mv PATH] [-ls] [--find-orphans] root-note

Vault-splitting utility for Obsidian. Allows you to select a root note and then recursively list, move, or copy all notes that it links to. Does not follow backlinks.

positional arguments:
  root-note             Path to file that should be considered as root when building tree

options:
  -h, --help            show this help message and exit
  -cp PATH, --copy PATH
                        Copy isolated tree to given directory
  -mv PATH, --move PATH
                        Move isolated tree to given directory
  -ls, --list           List files without moving or copying them. Default behavior.
  --find-orphans        Invert behavior to affect all files that aren't in the tree

How to Install

  1. Download the ZIP or clone the repository
  2. Open the folder as a vault in Obsidian (File → Open Vault)
  3. Obsidian will prompt you to install required plugins

Stats

Stars

1

Forks

0

License

MIT

Last updated 15mo ago

Tags

obsidian