Coder Social home page Coder Social logo

Comments (4)

lhl avatar lhl commented on August 22, 2024 1

Yeah, I actually had to install Python 2.7 to try to get the pypi version working. It had problems initializing the git repo, and while poking around I noticed it was like 6 years old and saw that the git repo was significantly updated and just switched to using a HEAD checkout. This is what I did to get that working:

pip install git+https://github.com/KostyaEsmukov/SyncToGit
pip install 'synctogit[evernote]
git init
git add README.md
git commit README.md -m 'first commit'
synctogit ~/.synctogit/config.ini evernote

I had to manually setup the git folder since the auto-initilization in an empty folder seemed to fail. One other thing I did was to go into the filename_sanitizer.py and modify L48 and set it to truncate filename = filename[:_max_filename_len] instead of erroring (I had a lot of notes w/ the webclipper that apparently had very long titles) - this probably isn't the best behavior, and I have to check if some data if note titles aren't also exported into the HTML, but I've already done manual ENEX exports and also used evernote-backup so figure I'm mostly covered either way.

Thanks for maintaining this tool btw, nice to have export options (I haven't really used my Evernote for years, but also was lazy about doing full exports, but with the recent hubbub, better to have a proper backups now!)

from synctogit.

lhl avatar lhl commented on August 22, 2024

Was just trying to get this working and grepping through the source, it looks like you can add this to your config:

[evernote]
sandbox = false

from synctogit.

KostyaEsmukov avatar KostyaEsmukov commented on August 22, 2024

The version uploaded to pypi is very old, I'm not even sure it would work. You may try installing from github:

# Requires python 3.7 or newer
pip3 install https://github.com/KostyaEsmukov/SyncToGit/archive/refs/heads/next.tar.gz

Sample config:

[general]
timezone = Europe/London

[git]
repo_dir = my-git-repo-path
push = false

[evernote]
sandbox = false

from synctogit.

KostyaEsmukov avatar KostyaEsmukov commented on August 22, 2024

Yeah, I sort of neglected the proper community-side maintenance of this project and haven't been making pypi releases or updating the docs. However, I'm still using it, so it's in a working shape, albeit not very beginner-friendly.

The steps you wrote are absolutely correct, thanks for the addition! It's been a long time since I set this up, and now it just simply works, keeping my notes backed up. Although I no longer use evernote, I've switched to onenote for my daily use, which backups are also implemented in this tool. However, evernote support in this project is still present, and I think it should work as well.

from synctogit.

Related Issues (3)

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.