💾 Archived View for 1436.ninja › Phlog › gmi › 20200128.gmi captured on 2023-11-14 at 08:07:09. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-09-08)

-=-=-=-=-=-=-

File Syncing from Where-ever

Entered: in vim on x201 | Date: 20200128

I wanted to be able to edit my org files from my Nokia N810 where-ever I happen to be (assuming that I have wifi). I have these files stored in Dropbox, and the directory they live in is also a git repo. Now, there is no Dropbox client for the N810, and I could not get the git client from the devel repo for the N810 to work. So, what to do?

I decided on using three scripts: one to ssh to leveck.us, git pull in the org repo, and scp the files to my N810, one to scp the files to leveck.us, git commit/push, and one as a shortcut to open my main org knowledge base in vim on my N810. The wrinkle here is that ssh'ing to leveck.us from inside my network hits RPoD (the Raspberry Pi of Death), and outside my network hits RPoJ (the Raspberry Pi of Judgement). So, I have the server-side scripts living on both Pis and each has their own copy of the repo. I have the N810 deleting the line in known_hosts for leveck.us prior to connecting to handle the inevitable error message. The scripts on the server side git pull as the first step, so it is a safe operation. The side effect is yet another backup of my files is existing, and one that is otherwise not sync'd in case of file corruption or something similar happening.

This level of redundancy makes me happy, due to the level of redundancy. (Ha!) Now, I feel like when I am out of town, I can keep my brain on track. As an extra measure, with the server side scripts in place, I could also use the same system on my android phone with termux in a pinch.