Attachment location issue
Hi,
I'm running Zotero on Fedora.
I store all of my attachments in a single folder that has a path similar to:
/home/user/research/zotero/
and for reasons mainly to do with back up and syncing, I want to move the location of the attachments to:
/home/user/other_folder/zotero/
I've cloned the original folder into the new destination, and have (I think) used the path editor in config but when I access an attachment, it is pulling from the original location.
I've a couple of years of attachements, so would rather not have to change this manually, can someone help?
Thank you.
I'm running Zotero on Fedora.
I store all of my attachments in a single folder that has a path similar to:
/home/user/research/zotero/
and for reasons mainly to do with back up and syncing, I want to move the location of the attachments to:
/home/user/other_folder/zotero/
I've cloned the original folder into the new destination, and have (I think) used the path editor in config but when I access an attachment, it is pulling from the original location.
I've a couple of years of attachements, so would rather not have to change this manually, can someone help?
Thank you.
Since you've already moved files, I think the easiest solution is to use Zutilo https://github.com/wshanks/Zutilo to bulk update your links to linked files
I haven't moved files yet - I've cloned the existing directory so both the new and the old exist.
I wasn't willing to remove the old directory until I had a clear plan (and an up-to-date backup!).
So do I just remove the old path, and then all should work with the new path?
You can save linked file attachments with a relative path if you set up a Linked Attachment Base Directory. For troubleshooting issues with linked files, see here for an explanation of the Zutilo add-on's relevant functions.
Yes, this is the folder where I first store the articles, and I then associate them with a Zotero record by either attaching them to an existing record or importing the attachment.
So to confirm the steps;
I reset the Linked Attachment Base Directory to the original path; e.g.,
/home/user/research/zotero/
I then move (as opposed to copy) the files to the new directory; e.g.,
/home/user/new_folder/zotero/
Start Zotero, it will no longer be able to see the attachments
Change the Linked Attachment Base Directory to the new path of:
/home/user/new_folder/zotero/
Attachments should then work.
I tried this before, but I started by setting the Linked Attachment Base Directory to the new path, and I cloned rather than moved the directory, so perhaps that it is why Zotero kept looking to the original path.
Not sure why it didn't work the first time I tried it, but working now.
Your help is really appreciated.