Space Effficiency: Using Hardlinks to PDFs with Zotero Store Files
My understanding is that Zotero offers two options for connecting PDFs to parent items:
(1) A linked attachment base directory which establishes a location relative to a specific directory (i.e., a dropbox folder) and lets the file exist in the same place on multiple machines
and
(2) A subdirectory called "storage" where copies of PDF files are stored, potentially leading to multiple copies of the same PDF file on the same computer and taking up more hard drive space.
Has anyone tried using Hardlinks instead, so that a single copy of a PDF can exist both in the Zotero storage directory and in the original location without taking up extra hard drive space?
http://www.linuxquestions.org/questions/linux-newbie-8/why-use-hard-links-933471/
What would be the advantages / disadvantages of this approach? Does Zotfile do something like this automatically, or just move the files?
(1) A linked attachment base directory which establishes a location relative to a specific directory (i.e., a dropbox folder) and lets the file exist in the same place on multiple machines
and
(2) A subdirectory called "storage" where copies of PDF files are stored, potentially leading to multiple copies of the same PDF file on the same computer and taking up more hard drive space.
Has anyone tried using Hardlinks instead, so that a single copy of a PDF can exist both in the Zotero storage directory and in the original location without taking up extra hard drive space?
http://www.linuxquestions.org/questions/linux-newbie-8/why-use-hard-links-933471/
What would be the advantages / disadvantages of this approach? Does Zotfile do something like this automatically, or just move the files?
(edited to make sense)
I've been doing some research before trying this hardlink approach and according to this thread on stack exchange, hardlinks don't work well in OSX for any files that are going to be edited.
http://superuser.com/questions/302051/how-do-you-create-a-working-hard-link-in-osx
So if I annotate PDFs, the hardlinks would break and need to be recreated, which would be a hassle.
What about using aliases? Has anyone tried that? So, for example, the full PDF file either is located within the Zotero storage folder and everything else is an alias, or the Zotero storage folder is full of aliases pointing to files in other folders?
If you do want to move instead of copy files into Zotero you can use shift+drag (cmd+drag on Mac).
I'm trying to avoid having too many duplicate files.
@ fbennett
According to the following threads, Symlinks don't work if you rename or delete the target, but aliases still will work:
http://macs.about.com/od/faq1/f/What-Are-Aliases-Symbolic-Links-And-Hard-Links-In-Mac-Os-X.htm
http://stackoverflow.com/questions/6311568/are-symbolic-links-and-aliases-the-same-thing-mac-os-x
http://forums.macrumors.com/showthread.php?t=972404
It seems like Aliases work better than Symbolic links. Why use Symbolic links?
Is the issue that Aliases run slower because they need to search for the new filename/location? Or do they not work with some programs?
Or is it that Aliases take up more space?
http://apple.stackexchange.com/questions/2991/whats-the-difference-between-alias-and-link
Any thoughts on whether Aliases or Symlinks would be a better solution, and where the file should go and where the alias / link should go?
http://apple.stackexchange.com/questions/2991/whats-the-difference-between-alias-and-link
"Another difference is that command-line tools (i.e. anything that uses Posix file APIs) won't understand aliases, just symlinks. Both will work for GUI applications. – Gordon Davisson Oct 7 '10 at 19:51"
Does anyone know if Zotero or important plug ins to Zotero use Posix file APIs?