Code Monkey home page Code Monkey logo

Comments (3)

axelkar avatar axelkar commented on September 28, 2024 1

Could I have a try at implementing and possibly maintaining this? Isn't pull just cloning the server's database file and adding its unique rows to the client's own? Push is everything backwards: first cloning the server's database file, adding the client's unique rows to it and updating it back on the server (or launch a small process on the server to do it all with SQLite's lock mechanism). Please tell me if I have the wrong idea of the codebase as I haven't contributed to Atuin yet. I'm looking forward to have shell integration (perhaps automatic SSH syncing before, during(?) and after sessions) and easy commands like originally noted.

At it's easiest (not simplest):

ssh -q machine cat '~'/.local/share/atuin.db | atuin merge-database -
# Needs passwordless authentication because stdin is piped so
# that's something to fix with "easy commands" ˇˇˇ
cat ~/.local/share/atuin.db | ssh machine atuin merge-database -

from atuin.

ellie avatar ellie commented on September 28, 2024

This would be super cool to have! I don't think it would be particularly complex to implement either - could add atuin export that would basically just dump the database to stdout, and then atuin import dump (or similar) to read from stdin

Thank you for the suggestion ✨

from atuin.

ellie avatar ellie commented on September 28, 2024

This would be super cool to have!

I still agree with what I said a year ago yesterday, but I don't think we will ever implement this. I'd rather focus on maintaining just one method of sync

from atuin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.