This just sync any folder with an external device by using crontab. It's meant to run sparsely, hence it mounts and unmounts the device on every execution.
It consists of two scripts:
with_device.sh
: mounts and umounts the external device - should be in a folder with restricted accesssimple_backup.sh
: does the actual backup using rsync - can be in any folder
Crontab sample: