• 0

How can I sync keepass database when database changes, help me


Question

 
 

hi

 

i use keepass 2.88 under w8.1 64bit and w7 sp1 64bit

 

i would like to sync my database with my ftp when database changed ( add a new entry , edit an entry , delete my entry)

 

well i created a trigger but it doesn't work perfectly

 

in the trigger under

event -> saved my database

condition -> dabase  has unsaved changes ->active

actions -> sync to my ftp

 

 

but it doesn't work , seem that the condition does work

 

might you help me please?

 

sorry for my poor english

 

 

 

 

18 answers to this question

Recommended Posts

  • 0

2.88 really??  Where is that at - current version is 2.28 on the keepass website.

 

So have you copied your file to the ftp server?  Have you gotten it to work with  just sync under file menu..  Once you set that up, every time you save the database it should ask you if you want to sync.  Does that work?

 

I personally just have keeppass in my dropbox and don't worry about it, its everywhere my dropbox is - if need be can grab it from anywhere, etc.  But I could prob just get rid of it since all my passwords are in lastpass anyway.  And that is so much easier to use on any device or browser than keepass.

  • 0
 
 

 

  On 26/10/2014 at 12:09, BudMan said:

2.88 really??  Where is that at - current version is 2.28 on the keepass website.

 

 

hi

ops it's 2.28 :( typo error
 

  Quote
I personally just have keeppass in my dropbox and don't worry about it, its everywhere my dropbox is

 

did you copied even the program in dropbox? or do you use dropbox to sync?

i don't trust about lastpass

 

  Quote

 

So have you copied your file to the ftp server?

 

yes i have

 

  Quote
Have you gotten it to work with  just sync under file menu..  Once you set that up, every time you save the database it should ask you if you want to sync.  Does that work?

yes it does

but i would like to sync only if my database changes (for example adding/editing/deleting a new entry )

there is a condition option in the trigger

can i do it?

 

thanks Budman

 
  • 0

"i don't trust about lastpass"

 

Well that is you and your tinfoil hat, not the rest of the planet ;)  You do understand the passwords are encrypted on your end - they are not stored open on lastpass, lastpass could not view them if they wanted to.  Use a strong master password with 2 factor and how is it any different than keepass other than easier to use ;)

 

As to dropbox, I just put the whole portable program in a dropbox folder = done.  You sending it to a ftp server - so you log in with clear text across the public net every time you sync your database..  So your tinfoil hat is off during that operation - but you don't trust lastpass ;)

  • 0
 
 

 

  On 27/10/2014 at 11:20, BudMan said:

"i don't trust about lastpass"

 

Well that is you and your tinfoil hat, not the rest of the planet ;)  You do understand the passwords are encrypted on your end - they are not stored open on lastpass, lastpass could not view them if they wanted to.  Use a strong master password with 2 factor and how is it any different than keepass other than easier to use ;)

 

As to dropbox, I just put the whole portable program in a dropbox folder = done.  You sending it to a ftp server - so you log in with clear text across the public net every time you sync your database..  So your tinfoil hat is off during that operation - but you don't trust lastpass ;)

 

 

  On 27/10/2014 at 16:57, tim_s said:

Hi,

I do something similar but with btsync. I do not sync the key file and bring those to the remote machines manually and the strategy has worked great.

 

ok , the point is i have an ftp space, and i would like to sycn with keepass ,only when the datase contains some changes

but i can't find how let it work

would like to add a condition (database changed ) ->sync

don't know if it's my fault or if the program can't do it

thanks to everyone
 

 
  • 0

you get what free 2gig with dropbox, sure your password file is nowhere close to that = done. You don't even ever have to think about it sync again.

There is an plugin that adds other sync options like sftp or ftps so your not logging into ftp with clear text every sync. FTP was great in the day, but to be honest its of little use anymore. It can be a PITA behind nat.

But if your saying it works with manual sync, would seem like you just have triggers not quite right. When I get a chance will test it out on my end for how to set the triggers.

This doesn't seem right to me

condition -> dabase has unsaved changes ->active

But your event is save database, so the database would not have any unsaved changes. So I would take it that trigger would never fire. Have to look at what options there are, have not really played with keepass since went to lastpass few years back.

  • 0
 
 

 

  On 27/10/2014 at 17:25, Dashel said:

I prefer to just use a dedicated sync client too.  Is easier and less hassle.

 

Which action item are you using?  (Sync active DB w file/URL?)

yes sync active database with  a file/url

can you add a condition to sync only if the dabase changes?

thanks

 

  On 27/10/2014 at 17:28, BudMan said:


condition -> dabase has unsaved changes ->active

But your event is save database, so the database would not have any unsaved changes. So I would take it that trigger would never fire. Have to look at what options there are, have not really played with keepass since went to lastpass few years back.

 

yes with condition -> dabase has unsaved changes ->active , the trigger doesn't fire :(

thanks
 

 
  • 0

ftp has no method to sync only change, it would have to overwrite the file with any sort of change. Which is not how dropbox works for example, it only changes the bits of the file that change. This is done at the bit level.

While I am curious now how to make this work myself, to me it an antiquated method and is waste of time.. But I like playing with odd stuff, so will fire up my copy at the house fire up a ftp server (again antiquated, sftp is much better method - 1 port, secure can use public key auth even. All traffic is encrypted even if using username and password for login, et)

  • 0
 
 

 

  On 27/10/2014 at 17:53, BudMan said:

ftp has no method to sync only change, it would have to overwrite the file with any sort of change. Which is not how dropbox works for example, it only changes the bits of the file that change. This is done at the bit level.

While I am curious now how to make this work myself, to me it an antiquated method and is waste of time.. But I like playing with odd stuff, so will fire up my copy at the house fire up a ftp server (again antiquated, sftp is much better method - 1 port, secure can use public key auth even. All traffic is encrypted even if using username and password for login, et)

thanks Budman

 

 

  • 0

I use Keepass with WHS, OneDrive, and Dropbox. The way I've set it up is to fire a trigger on save. The trigger is as follows:

 

Properties:

Enabled

Initially on

 

Events:

Saved database file

 

Conditions:

(none)

 

Actions:

Change trigger on/off state: off

Synchronize active database with a file: (path to dropbox folder)\database.kdbx

Synchronize active database with a file: (path to Onedrive folder)\database.kdbx

Synchronize active database with a file: (path to WHS folder)\database.kdbx

Change trigger on/off state:on

 

This works for me across multiple computers and phones.

 

As for FTP security, while the connection is  unencrypted, the data is encrypted. If you have a strong enough password, no one is going to get your data. They can, however, get your FTP password and erase your database. Don't use FTP for something this important.

  • 0

I keep my KeePass DB on a Linux Server VM accessed via SSH File Transfer Protocol (SFTP) backed up nightly...

 

I prefer this setup. It gives me access to a synced and updated file that can be access by myself and my wife on all our devices. At the same time it allows me to maintain the control over my data I prefer. I prefer not to be boxed in with some service in regards to my critical data. To each their own :)

  • 0

I can not get the ftp sync to work with save or saving trigger, but can get it to work with close trigger

<?xml version="1.0" encoding="utf-8"?>
<TriggerCollection xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<Triggers>
		<Trigger>
			<Guid>RQ9P2A1kh0aNYHBmD6m4CQ==</Guid>
			<Name>ftp</Name>
			<Events>
				<Event>
					<TypeGuid>lPpw5bE/QSamTgZP2MNslQ==</TypeGuid>
					<Parameters>
						<Parameter>0</Parameter>
						<Parameter>d:\dropbox\keepass\database.kdbx</Parameter>
					</Parameters>
				</Event>
			</Events>
			<Conditions />
			<Actions>
				<Action>
					<TypeGuid>Iq135Bd4Tu2ZtFcdArOtTQ==</TypeGuid>
					<Parameters>
						<Parameter>ftp://storage.local.lan/Database.kdbx</Parameter>
						<Parameter>ftpuser</Parameter>
						<Parameter>Test123</Parameter>
					</Parameters>
				</Action>
			</Actions>
		</Trigger>
	</Triggers>
</TriggerCollection>
If use saving trigger it gets stuck in loop, if use the saved trigger it errors with file being open I think.. Here is the thing - were are you going to use this file? Since your not opening it directly. If you want to have multiple computers use the same file then you should just open the file directly from ftp I would think?

As others have mentioned, not just me - use a different sync system to sync your keepass database file.. It is SO MUCH EASIER!!! Like I said I just run the portable version and put the whole thing in a dropbox. Now I have keeppass where ever I need it, on any machine I have dropbox on, or even if out and about via can just grab the database from the dropbox web gui, etc.

  • 0
 
 

 

  On 27/10/2014 at 18:37, Joe User said:

I use Keepass with WHS, OneDrive, and Dropbox. The way I've set it up is to fire a trigger on save. The trigger is as follows:

 

Properties:

Enabled

Initially on

 

Events:

Saved database file

 

Conditions:

(none)

 

Actions:

Change trigger on/off state: off

Synchronize active database with a file: (path to dropbox folder)\database.kdbx

Synchronize active database with a file: (path to Onedrive folder)\database.kdbx

Synchronize active database with a file: (path to WHS folder)\database.kdbx

Change trigger on/off state:on

 

This works for me across multiple computers and phones.

 

As for FTP security, while the connection is  unencrypted, the data is encrypted. If you have a strong enough password, no one is going to get your data. They can, however, get your FTP password and erase your database. Don't use FTP for something this important.

 

hi

may i ask you what is it whs ?

did you installed a dropbox plugin?

 

but you get always sync when you click save, even the database is not changed

 

  On 27/10/2014 at 18:56, BudMan said:

I can not get the ftp sync to work with save or saving trigger, but can get it to work with close trigger
 

<?xml version="1.0" encoding="utf-8"?>
<TriggerCollection xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<Triggers>
		<Trigger>
			<Guid>RQ9P2A1kh0aNYHBmD6m4CQ==</Guid>
			<Name>ftp</Name>
			<Events>
				<Event>
					<TypeGuid>lPpw5bE/QSamTgZP2MNslQ==</TypeGuid>
					<Parameters>
						<Parameter>0</Parameter>
						<Parameter>d:\dropbox\keepass\database.kdbx</Parameter>
					</Parameters>
				</Event>
			</Events>
			<Conditions />
			<Actions>
				<Action>
					<TypeGuid>Iq135Bd4Tu2ZtFcdArOtTQ==</TypeGuid>
					<Parameters>
						<Parameter>ftp://storage.local.lan/Database.kdbx</Parameter>
						<Parameter>ftpuser</Parameter>
						<Parameter>Test123</Parameter>
					</Parameters>
				</Action>
			</Actions>
		</Trigger>
	</Triggers>
</TriggerCollection>
If use saving trigger it gets stuck in loop, if use the saved trigger it errors with file being open I think.. Here is the thing - were are you going to use this file? Since your not opening it directly. If you want to have multiple computers use the same file then you should just open the file directly from ftp I would think?

As others have mentioned, not just me - use a different sync system to sync your keepass database file.. It is SO MUCH EASIER!!! Like I said I just run the portable version and put the whole thing in a dropbox. Now I have keeppass where ever I need it, on any machine I have dropbox on, or even if out and about via can just grab the database from the dropbox web gui, etc.

 

hi

may i ask you about the code ?

where and how should i use?

were you able to sync only when the database has been changed?

 

you said you put your keepass on dropbox , but if you want to use on another pc ,you have to download and run it on the pc ,right?

 

thanks

again sorry for my poor english :(

 

 
  • 0

That code is from keepass, click tools export triggers.

 

If  you added a condition that something was changed sure..

 

If you have dropbox on another machine, and you sync that folder it would already be there.  How do you think your database on a ftp server is going to work?  If you don't download the file?

  • 0
  On 28/10/2014 at 06:51, drugo said:

 

 

hi

may i ask you what is it whs ?

did you installed a dropbox plugin?

 

 

 

WHS is Windows Home Server, I have a home server where I keep important files.

No, I did not install a plugin for dropbox, I do have dropbox running on my local computer.

This will sync on save, even if you didn't change anything. If you do a save without changing any fields the sync will run and make no changes. If you exit without saving, no sync will run.

  • 0
  On 29/10/2014 at 23:35, Joe User said:

WHS is Windows Home Server, I have a home server where I keep important files.

No, I did not install a plugin for dropbox, I do have dropbox running on my local computer.

This will sync on save, even if you didn't change anything. If you do a save without changing any fields the sync will run and make no changes. If you exit without saving, no sync will run.

thanks Joe

This topic is now closed to further replies.
  • Posts

    • Microsoft 365 Word gets SharePoint eSignature, now you can ditch third-party signing tools by Paul Hill Microsoft has just announced that it will be rolling out an extremely convenient feature for Microsoft 365 customers who use Word throughout this year. The Redmond giant said that you’ll now be able to use SharePoint’s native eSignature service directly in Microsoft Word. The new feature allows customers to request electronic signatures without converting the documents to a PDF or leaving the Word interface, significantly speeding up workflows. Microsoft’s integration of eSignatures also allows you to create eSignature templates which will speed up document approvals, eliminate physical signing steps, and help with compliance and security in the Microsoft 365 environment. This change has the potential to significantly improve the quality-of-life for those in work finding themselves adding lots of signatures to documents as they will no longer have to export PDFs from Word and apply the signature outside of Word. It’s also key to point out that this feature is integrated natively and is not an extension. The move is quite clever from Microsoft, if businesses were using third-party tools to sign their documents, they would no longer need to use these as it’s easier to do it in Word. Not only does it reduce reliance on other tools, it also makes Microsoft’s products more competitive against other office suites such as Google Workspace. Streamlined, secure, and compliant The new eSignature feature is tightly integrated into Word. It lets you insert signature fields seamlessly into documents and request other people’s signatures, all while remaining in Word. The eSignature feature can be accessed in Word by going to the Insert ribbon. When you send a signature request to someone from Word, the recipient will get an automatically generated PDF copy of the Word document to sign. The signed PDF will then be kept in the same SharePoint location as the original Word file. To ensure end-to-end security and compliance, the document never leaves the Microsoft 365 trust boundary. For anyone with a repetitive signing process, this integration allows you to turn Word documents into eSignature templates so they can be reused. Another feature that Microsoft has built in is audit trail and notifications. Both the senders and signers will get email notifications throughout the entire signing process. Additionally, you can view the activity history (audit trail) in the signed PDF to check who signed it and when. Finally, Microsoft said that administrators will be able to control how the feature is used in Word throughout the organization. They can decide to enable it for specific users via an Office group policy or limit it to particular SharePoint sites. The company said that SharePoint eSignature also lets admins log activities in the Purview Audit log. A key security measure included by Microsoft, which was mentioned above, was the Microsoft 365 trust boundary. By keeping documents in this boundary, Microsoft ensures that all organizations can use this feature without worry. The inclusion of automatic PDF creation is all a huge benefit to users as it will cut out the step of manual PDF creation. While creating a PDF isn’t complicated, it can be time consuming. The eSignature feature looks like a win-win-win for organizations that rely on digital signatures. Not only does it speed things along and remain secure, but it’s also packed with features like tracking, making it really useful and comprehensive. When and how your organization gets it SharePoint eSignature has started rolling out to Word on the M365 Beta and Current Channels in the United States, Canada, the United Kingdom, Europe, and Australia-Pacific. This phase of the rollout is expected to be completed by early July. People in the rest of the world will also be gaining this time-saving feature but it will not reach everyone right away, though Microsoft promises to reach everybody by the end of the year. To use the feature, it will need to be enabled by administrators. If you’re an admin who needs to enable this, just go to the M365 Admin Center and enable SharePoint eSignature, ensuring the Word checkbox is selected. Once the service is enabled, apply the “Allow the use of SharePoint eSignature for Microsoft Word” policy. The policy can be enabled via Intune, Group Policy manager, or the Cloud Policy service for Microsoft 365 Assuming the admins have given permission to use the feature, users will be able to access SharePoint eSignatures on Word Desktop using the Microsoft 365 Current Channel or Beta Channel. The main caveats include that the rollout is phased, so you might not get it right away, and it requires IT admins to enable the feature - in which case, it may never get enabled at all. Overall, this feature stands to benefit users who sign documents a lot as it can save huge amounts of time cumulatively. It’s also good for Microsoft who increase organizations’ dependence on Word.
    • It's always good to have an option to secure your stuff to another medium. I did that with DVD/CD collection, and run my own media server now. It's more convenient that way and no need for separate players anymore.
    • Google Search AI Mode gets support for data visualization and custom charts by Aditya Tiwari Google announced it is rolling out support for data visualizations and graphs for finance-related queries in Google Search's AI Mode. Introduced last month at the Google I/O 2025 keynote, the feature lets you analyze complex datasets and create custom charts simply using natural language prompts. The updated AI Mode lets you compare and analyze information over a specific period, Google explained. It generates interactive graphs and provides a comprehensive explanation for your questions. AI Mode utilizes Gemini's multimodal capabilities and multi-step reasoning approach to comprehend the question's intent while accessing historical and real-time information relevant to the question. For instance, instead of manually researching individual companies and their stock prices, you can use AI Mode to compare the stock performance of different companies for a specific year. Once the graph is generated, you can choose the desired time period using the mouse cursor and ask follow-up questions based on the data presented. These new data visualizations for finance queries are available to users who have enabled the AI Mode experiment in Labs. AI Mode was introduced earlier this year as an experimental feature in the US. The feature is an upgraded version of AI Overviews, and Google closely worked with AI power users through the initial development process. It uses the “query fan-out” technique to perform multiple related searches across subtopics and different data sources, then combines them to come up with a comprehensive response. Google updated AI Mode last month to use a custom version of the latest Gemini 2.5 model. It added several new features, including Deep Search, live capabilities, agentic capabilities of Project Mariner, a new shopping experience, and the ability to add personal context by linking Google apps. The search giant is planning to turn AI Mode into its bread and butter. It has begun testing ads for the feature, which will appear below and be integrated into AI Mode responses where relevant.
    • Guys, you should find another way to promote your deals... It's the third article in the last months that promote this deal for an upgrade from 10. Considering that upgrade from 10 to 11 is free it's a total non-sense.
    • Store should be a shrine of useful applications, vetted and verified. Easily sorted by publisher. Windows should start with not much installed and have things as options in the store. Not the wild west mess that it is. You could delete 95%+ of the crap on there and no one would notice. They need to add a better UI to the updates, it's awful right now.
  • Recent Achievements

    • Week One Done
      luxoxfurniture earned a badge
      Week One Done
    • First Post
      Uranus_enjoyer earned a badge
      First Post
    • Week One Done
      Uranus_enjoyer earned a badge
      Week One Done
    • Week One Done
      jfam earned a badge
      Week One Done
    • First Post
      survivor303 earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      432
    2. 2
      +FloatingFatMan
      239
    3. 3
      snowy owl
      213
    4. 4
      ATLien_0
      211
    5. 5
      Xenon
      157
  • Tell a friend

    Love Neowin? Tell a friend!