Automated cloud backup and the zotero directory/database
Hi all (hope all you east coasters are safe in this hurricane!)
I have a question that may not be resolvable, but maybe we can think about it a bit.
I use Spideroak, a cloud backup system with a very high security priority, and the client sits in the backround of my system (win7) automatically scanning the HD for file changes in specified directories.
This is all fine and good for 99% of applications, but the problem begins when I fire up Firefox and Zotero's sqlite files (and some other translators) update themselves ALL THE TIME. (incidentally I don't know why, because I am not adding/changing anything - is this because of Zotero's auto-sync?)
This has the effect of completely clogging up the backup queue in the client and, at times, needing for me to clear its queue through some complicated manuevers. Now, I realize this isn't a Zotero problem, per se, but there are really only two options here:
1. Figure out with SO how to change their automated backup algorithm to only backup files with changes outside of a certain timestamp range. This seems to me to be intractable because when it comes to other things - for example, saving Word docs - I want SO to recognize instantly the changes.
2. Exclude the Zotero directory from automated backup and do it manually. Also, this seems undesirable because of the philosophy of automated backup is all about the failsafe factor; you can't "forget" to backup.
3. Work with Zotero to figure out how to go around this - maybe store changed only when the db is actually changed... Or have the working files outside the main Zotero directory, and so when I backup the main dir I am not backing up all the time...
4. ???
Thanks for your help all.
I have a question that may not be resolvable, but maybe we can think about it a bit.
I use Spideroak, a cloud backup system with a very high security priority, and the client sits in the backround of my system (win7) automatically scanning the HD for file changes in specified directories.
This is all fine and good for 99% of applications, but the problem begins when I fire up Firefox and Zotero's sqlite files (and some other translators) update themselves ALL THE TIME. (incidentally I don't know why, because I am not adding/changing anything - is this because of Zotero's auto-sync?)
This has the effect of completely clogging up the backup queue in the client and, at times, needing for me to clear its queue through some complicated manuevers. Now, I realize this isn't a Zotero problem, per se, but there are really only two options here:
1. Figure out with SO how to change their automated backup algorithm to only backup files with changes outside of a certain timestamp range. This seems to me to be intractable because when it comes to other things - for example, saving Word docs - I want SO to recognize instantly the changes.
2. Exclude the Zotero directory from automated backup and do it manually. Also, this seems undesirable because of the philosophy of automated backup is all about the failsafe factor; you can't "forget" to backup.
3. Work with Zotero to figure out how to go around this - maybe store changed only when the db is actually changed... Or have the working files outside the main Zotero directory, and so when I backup the main dir I am not backing up all the time...
4. ???
Thanks for your help all.
In the case of the sqlite, yes, I do think it logs last syncs in the DB, so that would explain that (but not sure).
The ideal solution would be to exclude zotero.sqlite from permanent updating via spideroak and see if you can find a way to have it back-up periodically (say every 1h) rather than automatically on every change.
In case it's helpful: The only things in that folder that need to be backed-up are the zotero.sqlite, ideally various sqlite.bak files, and the /storage folder with all its content. Everything else will be restored with a standard Zotero re-install.
I don't think I can change the software to backup just a file in a separate profile than everything else. A limitation of SO, perhaps, but something I need to live with for now.
But looking at Dan's comments, maybe this is something that can be changed in Zotero?
It's still happening despite my modifications - here for example is a screencap of the SO software from last night when the computer was on. Firefox was running in background but there was definitely nothing else going on...
http://i.imgur.com/ywKFN.png
If you don't want this to happen, you can disable auto-sync in the Sync pane of the Zotero prefs, but we don't recommend that.
Faolan pointed out that we do need to record the last-sync time even when there are no changes in order to display it in the Sync button tooltip, but we could possibly record the display time separately and leave the database unchanged—the worst thing that would happen would be that, if someone transferred their database but not the separate file containing the display time, the tooltip would be incorrect.
However, in my experience, the entire Zotero folder backs up to Spideroak every time the program is opened (regardless of whether I sync it or make any changes). This can be problematic when I am drafting and editing, as my documents are stuck in Spideroak backup queues, behind the unchanged Zotero data.
Do you have any suggestions?