I have images stored in vault1/_attachment/img. When moving files from vault1 to a new vault2, the image links are broken (moved the files via native file explorer, since as far as I know there is no way to do move files between different vaults in Obsidian).
I’m looking for a script similar to the one I used when downloading local images from Roam.
I see two options:
- Copy over everything in
vault1/_attachment/img to vault2/_attachment/img, but then of course I’m left with a lot of unused images and increased vault size (the script could just delete unused images) or
- Find all the images in the new
vault2 vault and copy the image over.
If someone has already been through this I would be grateful for the help!