Tips for maintaining two (or more) vaults?

I started using Obsidian in about 2022, and during that whole time I’ve only ever used one vault. There’s only one of me, and I only have one brain, so why use two and make things more complicated?

But now the time has come when I need to split my vault in two: One for work, run on my employer’s OneDrive, and one for everything else — my personal projects, community activities, health, finance and so on.

Those of you who use two or more vaults: Please give me some tips on your best practices for running smoothly? How do you keep plugins and settings in sync — or do you even bother with that?

Also, can I run Obsidian with a vault in OneDrive from an iPhone and iPad? Does that work?

Also, if anyone has pointers on using Obsidian with Microsoft apps, I’d love to hear them.

Thanks!

I have two vaults with two separate needs, one for work and one for home, like yourself.

I recommend against using it with OneDrive simply because OneDrive has occasional issues with not properly handling the frequent file changes for apps that auto-save (OneNote has similar issues, as do other tools, so it’s not limited to Obsidian).

If you want to keep a backup on OneDrive, I’d recommend setting up a nightly Powershell (or even robocopy) script to archive your vault, keeping 7 (a week’s worth) and removing older archives. They’re still backed up to OneDrive, but without the headache of potentially losing data due to OneDrive being, well, OneDrive.

As for plugins, I have different sets of plugins because I have different needs on them, but I also don’t use a lot of plugins to start with. Once they’re set up, though, they typically just keep chugging along, so it’s a one-and-done situation as opposed to an ongoing maintenance task. Probably not a big issue unless you’re using a huge number of plugins.

I’m on the Mac so PowerShell and robocopy are probably not options but I expect OneDrive has the same problems for me so that is an excellent tip.

I started with a single vault and later split it into two (Education & Personal)

The actual reason was to sync only one vault to a specific device, but it also had the benefit of cutting down on some plugins. Both vaults having their own purpose means they don’t need to have the same plugins, so I don’t bother keeping plugins synced between them.

As for syncing, may I suggest MEGA or Koofr?
Both have generous free tier with file versioning. Koofr also supports webdav, so you can sync via Remotely save if you want to.

I think I setup my work vault manually, but for initial setup you can copy the .obsidian folder to get all the same settings. My work vault has a different, simpler setup from my personal vault, so there’s not much to keep in sync. On the off times I want to make a setting change to both, I do it manually.

I believe the Remotely Save plugin can sync to it (tho it sounds like that may be a moot point).

1 Like

It’s just theorycrafting, but i don’t see why it would not work. Maybe i even change my setup accordingly :smiley:

In principle you have one vault just as you have now. Within this vault you have 3 sections: 1. private 2. office 3. shared data.

Unified Vault
├── private/
├── office/
└── shared/

You could use a software that selects parts of the unified folder and mirrors them to some different folder. Last i checked you could not have multiple vaults at the same root-folder while ignoring parts within it. But maybe someone came up with a plugin for that :person_shrugging: That’s why i suggest this solution.

This gives you these two additional vaults/ Folders:

Office Vault
├── office/
└── shared/

Private Vault
├── private/
└── shared/

I love syncthing for that task. It mirrors data between two different folders. Doesn’t matter if on the same or different machines. If they’re on different machines, i think they have to be in the same network. But possibly different networks should work with some setup aswell.s

The shared folder has stuff like:

  • .obsidian (plugins, themes, snippets, hotexys, templates
  • templates
  • shared files (for example a zettelkasten that is used in both contexts as a reference)
  • to-do lists
  • …

You will have to exclude some files though:

  • workspace.json (never ever sync this if you have different vaults. It’ll fuck up the interface)
  • workspace-mobile.json

possibly also

  • plugin cache folders
  • graph cache
  • transient UI state

This makes a split: the logical vault != physical vault.

This way you can work in your unified vault just as you did before. The other vaults get the data they need automatically

The “office vault” gets copied to your office cloud via nextcloud, google drive, one drive or whatever. Your private stuff never touches that cloud. You could technically set it up on different machines:

rasperryPI/private: unified vault

office-machine: work vault

private-machine: private vault

This way your office-machine never gets private data and the other way around. That might actually be important regarding data-security.

Some things to consider:

  • The mirroring of the folders can lead to sync-conflicts, if you are working at different vaults on the same files at the same time.
  • Editing a file while a large amount of files gets synced might lead to a conflict (assuming the file is part of the big group)
  • Links:
    • Image having one file in /private that links to a file in /office. While you are in the unified vault, it does not matter. But if in the private vault it just points into nothingness. I’d make it a iron rule: If something is touching both private and office, it goes into "shared” and it avoids linking to either /private or /office. My recommendation would be to just work in the unified vault habitually. And if for any reason (for example a different work-machine) you have to use your office-vault, you just don’t click on orphaned links. Because this would lead to sync-conflicts.
  • It’s also important that the root of all vaults is at the same level: example: /shared/template/daily-todo.mdhas to be the same in each of the vaults. Basically: Don’t let the segmented vault point it /privat/, but at / (root of the unified vault)
  • Indexing might be troublesome.
    • Some plugins might not work
    • Some Plugins index the vault whenever it is opened. Don’t switch often between the vaults
    • The Search might return weird results in the “small vaults” regarding backlinks, if you don’t watch out regarding the link-issue mentioned above.

___

Alternatively you could just use symlinks. But that’ll likely cause more trouble. Especially on windows. But you have no sync-conflicts, and duplications.

2 Likes

Hi! Do you know if iCloud would be more reliable than OneDrive? Alternatively, Google Drive or DropBox? Are there any guides on how to set a vault there? I don’t want to use GDrive/DropBox to back up my Mac (iCloud is fine for that). I just want a cozy place for my remote vault :blush:

for iPhone/iPad specifically, iCloud is usually the least weird option because Obsidian on iOS expects its iCloud-synced vaults inside the Obsidian app container.

The practical setup I’d use is:

  1. create the vault from Obsidian on iOS first, so it makes the right iCloud folder
  2. on the Mac, open that same folder as a vault
  3. double-check you did not accidentally create a nested Vault/Vault/... folder — that one bites people a lot

I’d be more cautious with OneDrive/Dropbox/Google Drive as the live mobile vault location. They can be fine as desktop sync/backup layers, but iOS file-provider sync is not quite the same as “Obsidian has a normal local folder it can rely on.” Whatever provider you choose, I’d keep version history/backups turned on.

1 Like

Always remember to check your plugin lists. Some plugin features that you use every single day have been taken for granted and people often forget to also install/update those plugins for a new vault.

1 Like

Won’t symlinks work?

Obsidian
  shared
  Personal
    personal
    symlink ../shared
  Office
    office
    symlink ../shared

no need to keep two copies and run some sync in the background to keep the data the same, your OS can already do it for you. Only problem would be if you have automatic syncing of a vault between machines, not sure how it handles conflicts, but since conflicts could occur either way, it should be able to handle them somehow

As far as I know, sync services generally don’t handle symlinks well.

4 Likes

I am a bit late to this topic, but I want to address one part of the original question that nobody really answered: what actually happens when two machines write at the same time.

Syncing notes is the easy part. If you edit the same note in two places, almost every sync tool will just create a conflicted copy next to the original. It is messy but visible, and you can fix it in a minute.

Syncing the .obsidian folder is the dangerous part. Plugins keep their settings in data.json files and constantly overwrite them in the background. When two machines write to the same small JSON file at the same time, you usually do not get a visible conflicted copy. One machine simply wins. You might find out weeks later that a plugin silently reverted its settings, or that your configuration is a weird mix of your laptop and desktop.

My practical advice is to keep your notes in whatever sync tool you like, and do one of two things:

  • Exclude the entire .obsidian folder from sync and set up each machine manually.
  • Exclude at least the .obsidian/plugins/*/data.json and workspace.json files.

If a plugin gives you an option to save its configuration inside your vault instead of the .obsidian folder, turn it on. This moves the settings file into the part you are actually syncing, where any sync issue will clearly show up as a normal file conflict. Losing a settings file is annoying. Losing it silently, and not knowing which of your two machines was right, is what really costs you a whole evening.

Regarding OneDrive:
The advice to keep it off live mobile sync is completely right. Also, before you put a vault on your employer’s OneDrive, remember that everything there is on their infrastructure and falls under their access policies. This is fine for meeting notes, but it is a terrible place for anything you want to keep if you ever change jobs.

1 Like

I’ve been in similar situation many times: I have my personal vault and then when I start in a new job, I create a separate vault for work stuff. I’ve written about it a bit more in Overlap between personal and work? - #9 by juhis . I’ll repeat some beats here.

I keep my work vault specific to that job: my daily and weekly notes, notes about projects, tasks, clients etc all live specifically in that note that I don’t sync outside my work devices because the stuff there is proprietary work information.

I don’t keep plugins or settings synced in any automated way. I run very few plugins in general and a lot of the ones I have for my personal vault I don’t need in my work vault. The ones I want in both, I manually install and configure.

Nothing substantial to knowledge lives (only) in my work vault. Every time I learn something new, I extract that to my personal notes in a way that removes all specific work information: I rewrite code examples to generic, simplified ones and process ideas into a form that are more universally applicable.

When I leave a job, I can destroy the work vault because there’s nothing there that I need (or can) take with me and it doesn’t bother me a bit because all the important things are in my main knowledge base.

1 Like