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

[Feature request]: export with --overwrite flag? #46

Closed
arrikhan opened this issue Aug 28, 2023 · 2 comments
Closed

[Feature request]: export with --overwrite flag? #46

arrikhan opened this issue Aug 28, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@arrikhan
Copy link

Suggestion

Currently I run a docker container with sync command daily and export command daily. The purpose is to export the data onto a backup device separate to the locally sync'd database using the sync command.

Can an '--overwrite' flag be added to enable option of overwrite files during export? Currently, running export twice writes duplicate file with (#) appended. Folders are ok.

NOTE: I'm using --single-notes mode in this instance.

@arrikhan arrikhan added the enhancement New feature or request label Aug 28, 2023
@Houska1
Copy link
Contributor

Houska1 commented Sep 2, 2023

I agree that this would be a nice enhancement. However, if your use case is local backup in case Evernote and/or its cloud storage goes bonkers, I wonder if you need to actually export daily? I merely back up the SQLite db as updated by sync, plus the evernote-backup executable: per #44, I know if I ever need the notes in html format, evernote-backup can create it from the latest saved SQLite db without needing contact with Evernote.

@vzhd1701
Copy link
Owner

evernote-backup already has this option

$ evernote-backup export --help
Usage: evernote-backup export [OPTIONS] OUTPUT_PATH

  Export all notes from local database into ENEX files.

Options:
  ...
  --overwrite          Overwrite existing ENEX files.
  ...

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

No branches or pull requests

3 participants