this post was submitted on 26 May 2024
11 points (86.7% liked)

ObsidianMD

228 readers
6 users here now

Lovers of Obsidian, rejoice! This community is for discussing all matters related to Obsidian. Please join the conversation and seek to help one another out.

founded 1 year ago
MODERATORS
 

Is anyone using the Obsidian Git plugin or another git solution to sync with Android? If so, How did you get it to work?

all 15 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 6 months ago (1 children)

I think i had trouble with the git plugin on android and ended up not using it. I used Termux instead and just used a couple of homescreen shortcuts to scripts to pull and push. Theres 100% a simpler way, but that's what workes for me.

[–] [email protected] 1 points 6 months ago* (last edited 6 months ago) (1 children)

Can it merge files in conflict?

[–] [email protected] 1 points 6 months ago (1 children)

Probably. Its the same full git you would have in any other linux distro. The only time I had a conflict, I just stashed the changes because they were minor. From then, Ive just had to be vigilante about remembering which device has the latest vault. Im not awesome at git, unfortunately .

[–] [email protected] 1 points 6 months ago

I do use git standalone to sync between devices, but not with android. I have tried the plugin and didn't work well for my workflow

[–] [email protected] 1 points 6 months ago (2 children)

If your looking for sync but ok with not having git, Obsidian LiveSync is amazing and works quite well on Android.

[–] [email protected] 1 points 6 months ago* (last edited 6 months ago) (1 children)

~~I've been watching it since it launch, but Git version control and hosting is better for my use case.~~

[–] [email protected] 2 points 6 months ago (1 children)

Honestly, from what I read about the git plugin they don't even really recommend running it on mobile.

I've used syncthing and remotely-save on two separate vaults. Syncthing is fine but battery drain is a real problem on mobile. Remotely-save with S3 (minio or the like) seems pretty good so far. I might actually use the latter overall since it seems way, way better on battery. Assuming you use minio and have bucket versioning turned on, it's "git-lite" to some degree (ie. at least saves changes to the files as such- certainly not as browseable as normal git, etc.)

What I do in addition to all this is just do git init on the vault and commit at times (ie. when I think of it or before doing big changes, etc.)

Not sure if it fits your use case but it's the best I found unless you really need commits every X minutes for whatever changes you did in a git repo.

[–] [email protected] 1 points 6 months ago* (last edited 5 months ago) (1 children)

Syncthing is fine but battery drain

I used to use it, but my phone model isn't famous because of it battery, sadly.

Remotely-save with S3 (minio or the like) seems pretty good so far.

LiveSyn can use S3 too insead of Couchdb but I will give a look to remotely-save.

[–] [email protected] 2 points 6 months ago (1 children)

Oh yeah- I meant to add that I tried Livesync and two things I didn't like about it- it didn't seem to work nearly as well with S3. I assume it can use couchDB well but I don't have one stood up and no real interest in standing one up for just that.

The other thing was (at least from what I could see) is that it saves your files in some kind of weird way (maybe encrypted, or packed/zipped, unsure.) So basically it should work well to maybe purely sync (and it didn't even do that for me on S3- it just never seemed to pick up changes for some reason) but if you deleted something and wanted to restore it or view it, you couldn't really do that via the minio UI (or at all.)

Remotely-save just saves the vault as it looks to the human eye- ie. just all the markdown files in plain text, etc. etc. I preferred that to the opaque way of livesync but that is pure user preference.

[–] [email protected] 1 points 6 months ago
[–] [email protected] 1 points 6 months ago* (last edited 6 months ago)

I have been rethinking about what you said. But, I have some questions:
Do LiveSync handles version control (Like Obsidian-Git or the official sync)?
If not, Do you use or know about a compatible tool or something?

Could I use Git for backups and version control (In one device) and LiveSync for synching with my other devices?
~~(I know you said,~~
~~> but ok with not having git~~

~~But I still wonder if there is a way to do it. Where do they fail working togheter? )~~

EDIT:
Can we use github plugin to backup our vault along with livesync plugin? #232