Sep 23, 2017 - Mac users have been complaining about high CPU consumption by Backup and Sync, and issue that existed in old Google Drive desktop app as well. My KeePass database is on Google Drive and I had trouble finding a sync plugin that works in Linux. And don't seem to work in Linux. Works in Linux but doesn't support Google Drive. After a couple hours of trial and error, I ended up with a solution that uses, KeePass' built-in and the. It seems to work well with multiple devices accessing the database at the same time, so I thought I'd share it with this sub. Install Drive The Github page has for installing Drive. I'm using the Ubuntu-based Linux Mint, so I was able to grab it from the. Initialize Drive I created a folder called gdrive in my home directory and ran the drive init command. Mkdir ~/gdrive drive init ~/gdrive Follow the on-screen prompts to connect drive to your Google Drive. Prepare the files I don't think drive allows KeePass to modify the database directly on the server, so I had to download a copy. My database file is called keys.kdbx. The drive commands only work when the working directory is the folder that drive was initialized in. Cd ~/gdrive drive pull keys.kdbx This solution requires two copies of the KeePass database on the system. One copy exists in the local drive folder and the other in another directory. I have my files in ~/gdrive and ~/Documents. ![]() Create Scripts I spent a lot of time trying to get bash commands to work in the KeePass triggers. It didn't work, so I just ended up creating simple scripts. I created scripts called keepass_trigger_load.sh and keepass_trigger_save.sh in my ~/Documents folder. Keepass_trigger_load.sh This one changes the working directory to the drive folder and pulls the database from the server. #!/bin/bash cd ~/gdrive drive pull -ignore-conflict -quiet keys.kdbx keepass_trigger_save.sh: This one copies the database in my Documents folder to the drive folder and then uploads it. #!/bin/bash cp ~/Documents/keys.kdbx ~/gdrive cd ~/gdrive drive push -ignore-conflict -quiet keys.kdbx I had to chmod the two scripts to make them executable. Create Triggers of my trigger config. I called one trigger 'Save to Google Drive.' When the local copy is saved, the server copy will be pulled and synchronized with the local copy. The local copy will then be copied to the drive folder and pushed to the server. The other trigger is called 'Load from Google Drive.' When the local copy is opened, the server copy will be pulled and synchronized with the local copy. Triggers can be easily copied and pasted using Tools -> Triggers -> Tools -> Paste Triggers from Clipboard. If you decide to use my trigger example as a template, you will need to change the file paths to match the way it's set up on your system. Final Note The user should only open the copy of the database that is not stored in the drive folder or else synchronization won't work. After you restart your computer, it will take some time for Backup and Sync to complete. Mac • In the top left, click the Apple menu. • Click Restart. • To confirm, click Restart. Windows 10 • In the bottom left, click or tap the Start button. • Click or tap Power. • Click or tap Restart Windows 8 & 8.1 • In the top right, next to Search, click or tap the power icon. • Click or tap Restart. Uworld usmle software for mac os x. Windows 7 • In the bottom left, click the Start menu icon. • Next to 'Shut down,' click Restart. Error messages You may see the following errors in Google Drive: • An unknown error has occurred:.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |