How to take a Backup for Obsidian and Logseq on Github - continuously
Hi folks
Okay, I leaned a new thing and I want to share that with you
Where is this begun?
several week ago i got familiar with Notion and so-called digital note-taking. While I have a really bad personality which I look for great option among available ones, I searched a few bits about different platforms and this is what i have in mind about these note-taking platforms:
- Notion
- is one of the best and lots of people brought their whole life into it
- It has databases which is discussed alot among people and ….. that’s kinda useful and handy
- Its slow some times (mentioned several times by people)
- Lets talk about downsides,
- Its completely online (→ this is really awful for me, at least) [ Dont mention it has application, they are online, they dont work offline ]
- Its not cross platfrom ( → Im a linux user (Arch BTW 😂))
- Notion blocked some countries (let’s put it a side)
- Coda
- is another software which I found nice and fast and handy
- its not good for everyday task and note-taking (at least in my opinion)
- its online too
- NO SOFTWARE (only web application)
There are some other software but I prefer “long story short”
🤔 What if these online applications go down one day 😐
Okay, What I prefer personally
Anytype.io
🚧 Its on alpha stage and may contain bugs
This is a really great software, I love it and I’m really keen to see its future
It works completely offline and has online backup system which sync your notes in background
Its open-source
It has great view
great structure (hard to start and understand but it will help us manage better)
there is some bugs now but they will fix and add features
one of its problem is inline LaTex support (it doesnt)
Obsidian
Its offline and open source
You notes are some .md
files on your system
You have to get familair with it (keywords, tweaks, inline commands and etc.)
It has plugins ….. one them is the base of this post
⇒ Great for Note taking
Logseq
Offline and open source
Outliner
Built-in Zotero support
Plugins
⇒ Seems great for academic jobs and researchs
lets clear something
I prefer separate my different aspects of life (learn coding stuffs and academic researches)
So, I prefer select Logseq and Obsidian
🤔 WHAT IF you lose you laptop or your data 😬
Lets find a way to backup our data
How to take backup
Long story short
you need
- two ssh-key (one per application, Obsidian and Logseq)
- Git-plugin in Obsidian
git
installed- An Internet Connection 🙂
Generating ssh-key and add it to Github
Easy (on linux BTW)
from github docs
1
ssh-keygen -t ed25519 -C "[email protected]"
you need two key, one for obsidian
and one for logseq
(its better to use these name as filename for keys)
note:
🔥 dont set passphrase for ssh-key
if you set passphrase for ssh-key, you hav to add
ssh-add ~/.ssh/obsidian
(changeobsidian
to your key name) to your.bashrc
file and enter your passphrase in every login
I have a problem
- Move files (
filename
and `filename.pub`) to `~/.ssh/` folder
Create a Github repo and Add your key to it
Copy the content of filename.pub
( cat filename.pub
) to your Github repository
now
Go to your repo → settings → deploy key → Add deploy key → set a name and paste the key afterward
✔️ ✅ Allow write access
Local configurations
clone repo using this command (use SSH for cloning)
1
GIT_SSH_COMMAND='ssh -i ~/.ssh/KeyName' git clone [email protected]:UserName/Repo.git
go to cloned folder and edit .git/config
file
add these lines to it (add [user]
part and add another line to [core]
part
1
2
3
4
5
6
7
[user]
name = Your name
email = [email protected]
[core]
...
sshCommand = "ssh -i ~/.ssh/sshKeyFile"
the sshKeyFile
for proper software and repo
YOU ARE ALL SET 👏😄
configuring Obsidian git-plugin and Logseq is easy, its on you