Title photo
frugal technology, simple living and guerrilla large-appliance repair
Sun, 23 Aug 2015

Bash script that mounts drive, backs up with rsync

I already use Bash scripts to run my rsync backups automatically, more to avoid mistakes in the rsync syntax (copying the wrong directory) than anything else.

I've been wanting to improve the script both to enhance portability by setting the target and destination directories with variables and to auto-mount the destination drive if it is not mounted already.

I decided to start with a Google search, and this entry from Frustrated Tech does exactly what I need: