by geraldwhen · 1y ago · 0 comments
No internet required. No sync software required. It’s quite nice!
The update script was pretty much this (on a laptop set up not to automatically mount removable filesystems):
#!/bin/sh -x
DeviceMountPoint="/media/pocketbook"
mount "$DeviceMountPoint" || exit 1
cd ~/doc || exit 1
rsync -crltv . "${DeviceMountPoint}/."
Status=$?
umount "$DeviceMountPoint"
exit $Status
And the `/etc/fstab` entry was something like: /dev/disk/by-id/usb-USB-FS_PocketBook_MYSERIALNUMBER-0:0 /media/pocketbook vfat user,noauto 0 0