I'm experimenting with setting up a headless calibre-server on Ubuntu Server 17.4. I've come a long way but am facing a bit of a problem.
I've got it running as a service but my books are on a file share so I've set the CALIBRE_OVERRIDE_DATABASE_PATH=/home/calibre/metadata.db environment variable so it saves the DB not on the CIFS mounted file system per the warnings in the FAQ.
I've even managed to install and configure one plugin from the command line. so far so good.
My problem is with adding books. When I try to run the following command (with the override DB environment variable correctly set) calibre creates a new metadata.db in the library folder rather than editing the metadata.db that calibre-server is actually using.
Code:
xvfb-run calibredb add /mnt/calibre/toadd/ -r --with-library /mnt/calibre/library
When I list the contents of the newly created /mnt/calibre/library/metadata.db I see only the new books. When I list the contents of the "real" metadata.db I get all the old books and none of the new ones.
Is alternative DB locations not supported by calibredb or am I doing something wrong?
Many thanks.