Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recommended way to sync a tomb #40

Open
chri2 opened this issue Oct 15, 2022 · 1 comment
Open

recommended way to sync a tomb #40

chri2 opened this issue Oct 15, 2022 · 1 comment

Comments

@chri2
Copy link

chri2 commented Oct 15, 2022

Which is the recommended way to sync a tomb? My thoughts are the following so far:

  • syncing an open tomb probably is not helpful, because it conflicts with processes writing to the tomb at the same time leaving the tombs filesystem in an unpredictable state
    • best approach seems to sync closed tombs only
  • since the syncing software doesn't know anything about the tombs content it's hard to decide which version of two tomb files is more recent - except for the closing time which should be reflected by mtime(?)
    • keep a long history of versions of tomb files to make it easy to manually merge any entry that has gotten lost - if that ever happens
    • I'm the only user of my pass-tomb using it on a handful of devices.
    • Conflicts should be rare, because good practice would be to leave the tomb not open on a device I'm not using anymore.
  • how should I find the right moment to sync?
    • Is there a hook for open and close on a pass-tomb I didn't stumble over?
    • I'm using a gpg key from a nitrokey. This gives me udev-events when inserting and removing the nitrokey: could sync on removal (outgoing) and on connect (incoming)

Side note: should think about how important it is to me to protect the file structure of my pass content by a tomb. Is it sufficient for me to have it protected "on the road" carrying a tomb file, but push it to a self-hosted git repository? In the light of the thoughts above this seems to be a compromise.

Any thoughts, help, further information on this would be very welcome 😏 !

@aikooo7
Copy link

aikooo7 commented Sep 10, 2023

Hello @chri2 I know this is a year latter 💀 but my approach is using git on the closed tomb so you know when changes and have a helpfull (or not) commit message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants