obsidian-vault/CS/Obsidian vault.md

39 lines
1.1 KiB
Markdown

---
aliases:
language: English
created: 2025-07-20
summary: Vault organization and infrastructure setup
tags:
- domain_cs
---
## Vault sync
#setup
- Prerequisite: Git server
- Create access token for user in git
- In Gitea: Settings --> Applications --> Generate access token
- In terminal `git clone https://<access-token>@<server-ip>:<port>/falsfour/thevault.git` (make sure to check if it is http or https)
- Open the git repository in Obsidian
- PC Client: onfigure `~/.ssh/config` and add:
- ```
Host ziffeldogip.de-git
HostName ziffeldogip.de
User git
Port 30222
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
Host ziffeldogip.de-root
HostName ziffeldogip.de
User root
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
```
- Phone Client: Termux git clone http link, then set git user/email in Termux, set name and email in Git Plugin in Obsidian, try git sync and enter user credentials once
- Open the Git-Plugin settings to local git config
- configure user.name
- configure user.email
- Check if the "pull on startup" option is checked
- Check if auto "commit-and-sync" timer is set
- Check commands like "commit-and-sync" or "pull"