Skip to content

Instantly share code, notes, and snippets.

@leodutra
Last active February 27, 2024 16:57
Show Gist options
  • Save leodutra/e1552a7d8515987ab090787e40253efa to your computer and use it in GitHub Desktop.
Save leodutra/e1552a7d8515987ab090787e40253efa to your computer and use it in GitHub Desktop.
Obsidian free sync using Google Drive on Ubuntu

Mount rclone sync

This config allows us to mount obsidian folder locally, preventing issues with Google Drive hashes

# create obsidian folder on Google Drive, then
# install rclone
curl https://rclone.org/install.sh | sudo bash
# create a "gdrive" remote config
rclone config
mkdir ~/obsidian

# mount temporarily
# the more performatic option is to use bisync every half hour
rclone mount gdrive:obsidian ~/obsidian --daemon --allow-non-empty --verbose

# mount on every reboot
(crontab -l 2>/dev/null; echo "@reboot rclone mount gdrive:obsidian $HOME/obsidian --daemon --allow-non-empty --verbose") | crontab -

Then use the mount as a vault

Unmount

fusermount -u ~/obsidian

Ref: https://webcache.googleusercontent.com/search?q=cache:https://medium.com/@gintarasan/saving-money-syncing-obsidian-with-google-drive-in-ubuntu-22-04-c5a8137c207d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment