I use Syncthing now. It's really useful.
I use Syncthing now. It's really useful.
(That said, one of the problems I encountered with Syncthing seemed to be that it wouldn’t properly reconnect when I switched networks, which is necessary since it runs as a persistent daemon. With Unison, so far I’ve been starting it up in the foreground in a terminal as needed, so it hasn’t had to provide the same functionality. But I expect I’ll eventually set up some type of auto-reconnect, which will hopefully work better than Syncthing did.)
Of course I've not tried it in a while because of those issues so it could be fixed now.
When go to another country, open my laptop, connect to a wireless network and bam. Syncthing connects, things got synced automagically.
I reluctantly installed Dropbox one day after forgetting my external drive at home. Honestly, that was the beginning of a miserable time. Dropbox never really delivered, it took forever to sync, and constantly caused the internal disk to trash. I had tons of other problems with Dropbox over the years and was very happy the day I quit using it.
I still have a unison alias in my .profile
alias unison="unison -logfile /Users/eddie/log/unison.log"
I really miss the control Unison gave me.Not C but not super powerful seems like the worst of both worlds.
Enable your android phone's hotspot, and connect your laptop to that hotspot.
Install termux on android (playstore). Install openssh in termux. Setup passwordless pub/private keys to log in from laptop to android termux sshd.
cat ~/.ssh/config # Laptop.
Host someName # Your android.
User u0_a168 # Whatever username termux gave you.
HostName 192.168.43.1 # 'ifconfig' in termux for this.
IdentityFile /home/you/.ssh/someName_id_rsa
Port 8022 # Default termux sshd port.
Now this should work from your laptop: ssh someName
Log out of your laptop's termux session.Install sshfs on your laptop, through your package manager or the manly way from github. I'm not manly.
Here's part of a script I use to get photos from my phone to my laptop.
# Mount the phone's DCIM directory locally over ssh.
# I had trouble with termux symlinks, so I went directly to /storage/...
sshfs someName:/storage/emulated/0/DCIM ~/mnt/someName
cd ~/mnt/someName/Camera
cp -vn * ~/Pictures/. # Copy all pictures that aren't yet on laptop.
mv * ../Saved/. # So ops on dcim/Camera don't take longer with more pics.
cd ~/Pictures # Can't unmount until leave mount.
fusermount -u ~/mnt/someName # Dismount. Gymnastic salute.
# Do whatever postprocessing you like on your photos ...
https://wiki.termux.com/wiki/Main_Pagehttps://wiki.termux.com/wiki/Remote_Access
https://wiki.termux.com/wiki/Internal_and_external_storage
https://en.wikipedia.org/wiki/SSHFS
man sshfs
stackoverflow