Obsidian to Github

Hello,
I would like to create an automation that takes my Obsidian vault and pushes it automatically to its GitHub repository. Is this possible? Do you know the pseudocode for accomplishing this?

Do I need to set up an installation on my server, or can I do it on my local computer installation? (And create a file so that when I click on it, it triggers the GitHub push for my project?)

It’s my first day with n8n, and I have a local installation.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

@Wil_WilOnWeb , I would imagine it is possible. Obsidian vault is just a folder on your local file system. However, to access a local file you would need to set up your n8n for that.

I assume you are using Docker installation on your PC. When running a docker container you need to mount your Obsidian vault to your container so that n8n could access your Obsidian files. Once that is done you could use Read Binary Files node to access the files and GitHub node to push it to the repository.

For example, to mount Obsidian vault (folder), you would run container something like this

docker run -d \
  --name n8n \
  -p 5678:5678 \
  -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n:latest \
  -v n8n_data:/home/node/data /PATH/TO/OBSIDIAN/YOUR_VAULT_NAME

The last lines mounts the (absolute) location of Obsidian vault to the internal filesystem of the container. Then, in the n8n node, you would reference the vault with data/YOUR_VAULT_NAME.

As you are saying it is your first day with n8n, I would imaging you still need to learn a lot about n8n before completing this task as well as Docker if you have no experience with that.

1 Like