Quote:
Originally Posted by userwang
At the moment I will occasionally make a backup my Calibre library to a folder on my PC using the 'connect to folder' function then syncing as a device. I also specify my own custom directory structure.
I know that the 'save to disc' button does essentially the same thing, but takes a little longer since it recopies the files every time.
Is there anyway to automate this process, so the backup is made every time I close Calibre for example?
|
Longshot: There may be a way to do the 'connect to folder syncing' via the undocumented command line tool 'ebook-device'. In which case you could run calibre from a script and run the 'ebook-device' command when it exits. See ==>>
calibre User Manual: Command Line Interface
Otherwise: It might be best done with a Library Closed Plugin.
However: If its for backup why not use one of the folder/file synchronisation tools to maintain a mirror of the library. In the event of a catastrophic failure (e.g. head crash) the mirror could be used as a calibre library, as well as being the source for restoring individual books in the event of a user error (e.g. accidental deletion). Some of those tools can be run from the command line, and/or have hooks into the OS scheduling facilities.
BR