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

Separate backup folders for each account #80

Closed
sn3akyb3ar opened this issue Oct 25, 2018 · 3 comments
Closed

Separate backup folders for each account #80

sn3akyb3ar opened this issue Oct 25, 2018 · 3 comments
Assignees

Comments

@sn3akyb3ar
Copy link

sn3akyb3ar commented Oct 25, 2018

If you have several accounts with different set of notes in each one of them (personal\work, etc.), and use local backup with "Synchronize note creation from filesystem" option, well, you are doomed :) Maybe it would be better to have a separate backup sub-folder for each account?

@sn3akyb3ar
Copy link
Author

doomed :)

Sorry for the vague description, I was tired :)
You need to...

  1. Have two or more accounts, online or not.
  2. Turn on local backup with "Synchronize note creation from filesystem" option
  3. Synchronize your notes from one account (Alephnote will make local backup)
  4. Change account (Alephnote will add all your notes from backup to new account, and make local backup for notes from your second account)
  5. Change account back, and voila – you have all your notes in both your accounts. And if one of these accounts was "headless", you're going to lose all tagging too.

@Mikescher
Copy link
Owner

Argh - I should really stop writing code that late ...

I just realized the captions in the Settings tabbar are switched - "Backup" should be "Local sync" and vice versa...

But I understand your problem :D - For the "Local Git Backup" feature I already added an option to have subfolders per account, I guess a similar option for "Local filesystem repository" (which is also a bad name...) should solve your problem

That you are loosing tags is kinda by design because the LocalSync can only contain the title and the content - and I didn't want to introduce some kind of special syntax to encode the tags...

TODO (for me)

  • Fix captions in settings
  • Better name for "Local filesystem repository" (?)
  • Option for subfolder per account in LocalSync (with name=account-name or name=account-UUID ?)
  • I vaguely remember that LocalSync is automatically disabled when switching accounts - if true this shouldn't happen with the separate subfolder option

PS:
I guess you are aware of that - but the feature you are using is not really intended as an backup (But the "Local git backup" option is).
It is only a synchronization of your notes with raw textfiles on the filesystem

@Mikescher Mikescher self-assigned this Oct 26, 2018
@sn3akyb3ar
Copy link
Author

I guess you are aware of that - but the feature you are using is not really intended as an backup (But the "Local git backup" option is).
It is only a synchronization of your notes with raw textfiles on the filesystem

Well, yes, I use it for sync mostly (but it's good to have one more local copy, anyway). Just thought of it as a potential headache for somebody in the future :)

Mikescher added a commit that referenced this issue Oct 27, 2018
Mikescher added a commit that referenced this issue Oct 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants