I want to use Obsidian on my mobile device and share data with my Obsidian folder from my desktop computer
- Create a Github Repository
- Create a Token:
Github.com > Settings > developer settings > Personal Token > Generate token classic (90days/Repo full control). Find a way to send it temporarily from your desktop to your mobile. You will need it after. - Clone on Desktop or add origin
mkdir repo
cd repo
(if already exists: clean remote) git remote remove origin https
git remote add origin git@github.com/<username>/<repo.git>
(if repo is not empty) git pull
- Open Obsidian and install Obsidian Git Plugin + enable
- Obsidian Git Plugin Settings > Vault backup interval 5 minutes
- Add ignore rules
nano .gitgnore:
.obsidian/plugins/obsidian-git/data.json
.obsidian/app.json
.obsidian/appearance.json
.obsidian/hotkeys.json
.obsidian/workspace
- Command palette: commit all changes + push
[!Desktop Rules]
- Backup interval: 5 or 10 min
- Startup: Pull
- Install Termux App
- Give Termux access to your storage using the following command:
termux-setup-storage pkg update && pkg upgradepkg install gitpwd: /data/data/com.termux/files/home/storage/downloadscd shared(shared folders destination for all apps)git clone git@github.com/<username>/<repo.git>- username + password (= paste token)
- Install Obsidian app
- Open Default Vault from "downloads/repo"
- Enable Community plugins
- Set Credentials in Obsidian Git Plugins (Author informations): paste the token into the password field
[!Mobile Rules]
- Manual backup: Commit+Push
- Startup: Pull
- Don't forget: you will need to update the Github Token after 90days
- SyncThing
- FolderSync