![]() ![]() If you followed all of the above steps, you should have an auto-saving and auto-syncing database. This auto-save trigger is set to save automatically every 15 minutes but you can change it to whatever you want by changing the "900" that you can find in line 12 to any other number (note that the time should be indicated in seconds). Lastly, we can use some more code to create an auto-save trigger (optional): This code will auto-sync whenever you save the database (by using CTRL S or clicking on "File > Save". Next, copy this code and follow the steps as before: Īgain, change the names of the parameters NEW DB and ONEDRIVE DB to the path of both files. Now, paste the code using the "Tools" button and clicking on "Paste triggers from clipboard". ![]() What this code will do is that when you open your database, it will automatically sync the two databases. Change NEW DB to the path of the database stored locally and ONEDRIVE DB to the path of the database stored in the cloud. Note that you will need to change the names of some parameters (they're indicated in the code as NEW DB and ONEDRIVE DB). Now, open the locally stored database and navigate to "Tools > Triggers." OneDrive database: C:\Users\\Desktop\Database.kdbx ![]() Here's a little example of how it should look: You can change their names to differentiate them easily (as Database and Database-synced). The other one (a copy) should be in your OneDrive folder. The one stored in your PC should not be moved from the directory you place it in first, keep that in mind. If you follow this "tutorial", you'll have two exact same databases, one stored locally on your PC and one stored in the cloud (I.E. ![]() I know that this post is 5 months old but if you're still looking for a solution, here you go.įirst of all, I want to clarify that using standard OneDrive sync will eventually come to data loss and it is not recommended, instead, do this: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |