# Whats the best way to transfer notes from one vault to another. Along with attachments. Without 3rd party plugin

**URL:** <https://forum.obsidian.md/t/whats-the-best-way-to-transfer-notes-from-one-vault-to-another-along-with-attachments-without-3rd-party-plugin/105542>\
**Category:** Help\
**Created:** [September 11, 2025, 1:47pm UTC](https://forum.obsidian.md/t/whats-the-best-way-to-transfer-notes-from-one-vault-to-another-along-with-attachments-without-3rd-party-plugin/105542 "2025-09-11T13:47:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkdme.dev](https://forum.obsidian.md/user_avatar/forum.obsidian.md/pkdme.dev/32/40443_2.png) [@pkdme.dev](https://forum.obsidian.md/u/pkdme.dev)\
**Post date:** [September 11, 2025, 1:47pm UTC](https://forum.obsidian.md/t/whats-the-best-way-to-transfer-notes-from-one-vault-to-another-along-with-attachments-without-3rd-party-plugin/105542/1 "2025-09-11T13:47:03Z")

</div>

Hi,  
I know this topic has been discussed in past. But I dont find any good solution I am looking for. My all attachments reside in ‘attachments’ folder.  
I want to transfer a bunch of notes from one vault to another. I know I can just copy the files, but I still need to look for specific attachments which are linked inside those notes. Anybody knows how to do this elegantly in 2025, please help.

Can there be an option to create a separate Vault altogether, from the selected notes/folders from within Obsidian.

Thanks

---

<div class="post-metadata">

**Author:** ![JLDiaz](https://forum.obsidian.md/user_avatar/forum.obsidian.md/jldiaz/32/82411_2.png) [@JLDiaz](https://forum.obsidian.md/u/JLDiaz)\
**Post date:** [September 11, 2025, 2:45pm UTC](https://forum.obsidian.md/t/whats-the-best-way-to-transfer-notes-from-one-vault-to-another-along-with-attachments-without-3rd-party-plugin/105542/2 "2025-09-11T14:45:10Z")

</div>

I think the most complex part may be figuring out the file names and paths to copy. Once you have a list of those file names and paths, the task of copying them can be easily automated with Python or another scripting language. For the part of extracting the file names, it occurs to me that you can use Bases in the following way:

1. Decide on a feature that all the notes you want to export have in common. For example, they’re all inside the same folder, or they all share a certain tag in the frontmatter.
2. Create a _Bases_ table that lists all the notes matching that criterion, and for each note (using a formula I’ll detail below), generate a list of all attachments it links to, showing the full path of each one.
3. Verify that the table shows exactly what you need.
4. Export the table as CSV (by clicking the number of results shown in the table header).

The formula mentioned in step 2 is:

```js
file.links.filter(value.asFile().ext!="md").map(value.asFile().path)

```

After step 4, you can write a script (in Python for example), that processes this CSV and copies each of the mentioned files. For the notes to work correctly in Obsidian, the destination vault where you copy them should have the same folder structure as the original vault (at least for the attachments).

## Example

If the search criterion is that the notes have the tag `exported`, the following _Bases_ table does exactly that:

```yaml
formulas:
  attachments: file.links.filter(value.asFile().ext!="md").map(value.asFile().path)
views:
  - type: table
    name: Table
    filters:
      and:
        - file.tags.contains("exported")
    order:
      - file.path
      - formula.attachments

```

The resulting table shows in the first column the relative path of each selected note, and in the second column the list of attachments, each with its path relative to the vault root. In the exported CSV, columns are tab separated, and attachments are comma separated inside its column.

For example:

```csv
file path attachments
Classes/Calendars/2025-2026.md Attachments/2025-Schedule-3º.pdf, Classes/Calendars/Plan.canvas, Attachments/2025-Calendar-Univ.pdf, Attachments/2025-Schedule-4º.pdf
People/Roxana.md People/Photos/Roxana.png

```

---

<div class="post-metadata">

**Author:** ![pkdme.dev](https://forum.obsidian.md/user_avatar/forum.obsidian.md/pkdme.dev/32/40443_2.png) [@pkdme.dev](https://forum.obsidian.md/u/pkdme.dev)\
**Post date:** [September 11, 2025, 7:29pm UTC](https://forum.obsidian.md/t/whats-the-best-way-to-transfer-notes-from-one-vault-to-another-along-with-attachments-without-3rd-party-plugin/105542/3 "2025-09-11T19:29:35Z")

</div>

Thanks for the proposed solution.  
But it seems too much for something so basic.

---

<div class="post-metadata">

**Author:** ![Ninsuhn](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/n/a5b964/32.png) [@Ninsuhn](https://forum.obsidian.md/u/Ninsuhn)\
**Post date:** [September 13, 2025, 3:00pm UTC](https://forum.obsidian.md/t/whats-the-best-way-to-transfer-notes-from-one-vault-to-another-along-with-attachments-without-3rd-party-plugin/105542/4 "2025-09-13T15:00:49Z")

</div>

A solution might be to just go ahead and copy the folders/files, and the attachments folder, into the new Vault. Don’t look for specific attachments linked to any of the notes. Don’t bother. Since we can just have a copy of the attachments folder in each Vault, just do that. The result will be excess, unlinked attachments in the new Vault, but at least you’ll have the ones you want. Does that make sense as a solution for you? Or did I fail to understand the question.

---

<div class="post-metadata">

**Author:** ![Sunnaq445](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/8c91f0/32.png) [@Sunnaq445](https://forum.obsidian.md/u/Sunnaq445)\
**Post date:** [September 13, 2025, 7:16pm UTC](https://forum.obsidian.md/t/whats-the-best-way-to-transfer-notes-from-one-vault-to-another-along-with-attachments-without-3rd-party-plugin/105542/5 "2025-09-13T19:16:34Z")

</div>

Well, it’s not a bad idea, Ninsuhn.  
Then OP can use the following

> [@Keeping Your Obsidian Vault Tidy: Detecting and Listing Orphaned Images with Obsidian Bases](https://forum.obsidian.md/t/keeping-your-obsidian-vault-tidy-detecting-and-listing-orphaned-images-with-obsidian-bases/104825):
>
> Maintaining a well-organized Obsidian vault is essential for efficient knowledge management and long-term peace of mind. Over time, as notes are created, edited, or deleted, image files can accumulate—some of which may no longer be referenced by any note. These “orphaned images” not only take up valuable storage space but can also clutter your vault, Historically, Obsidian users have relied on community plugins like Dataview, Find Orphaned Images, or Nuke Orphans to identify and manage these un…

to tidy up what is not needed in other vault.

But still a lot of work. I believe there was a plugin for this, Attachment Manager or somethin.

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [December 12, 2025, 7:16pm UTC](https://forum.obsidian.md/t/whats-the-best-way-to-transfer-notes-from-one-vault-to-another-along-with-attachments-without-3rd-party-plugin/105542/6 "2025-12-12T19:16:39Z")

</div>

Closed on December 12, 2025, 7:16pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
