⚠️ To prevent data loss make sure you understand howrclone syncandrclone copywork.
-
Download iSH from the AppStore
-
Open iSH and install
rcloneandnanowith the following command:
apk add rclone nano
- Create a new remote using
rclone config
- Open your
.profilefile to add thepushandpullcommands
nano ~/.profile
- Add the following lines to your profile
pull() {
rclone sync -P "REMOTE_NAME:NOTES_PATH" ~/Notes
}
push() {
rclone copy -P ~/Notes "REMOTE_NAME:NOTES_PATH"
}- Create a directory to mount your notes on iSH
mkdir ~/Notes
- Mount the Obsidian folder on iOS to the iSH app. After running the following command a file selection dialog will appear, select your local Obsidian vault.
mount -t ios . ~/Notes
-
Restart the shell by quitting the iSH app or executing
exit. -
Run
pullto sync the notes from your remote machine to the iOS device. Runpushto upload the files on the iOS device to the remote machine.
Note that the pull command will perform an rclone sync action instead of an rclone copy. An rclone sync will make the iOS vault identical to the remote, this means that it will delete any file on the local vault that is not present on the remote.
I recommend a step before 4, to install nano as it isn't included in the linux alpine in the iSH app.
apk add nano