# Make sure you check the line mount /dev/sda1 $ddir and replace with adequate device.

5. Make script executable
chmod +x sync-local.sh

6. Run it for test
$ sudo ./sync-local.sh

7. Create new cron entry for it ($ sudo mcedit /etc/crontab) and set it to run every 10 minutes:
*/10 * * * * root /path-to-script/sync-local.sh

Extra:The script only runs if the backup directory exists. This is a protection in case another disk is plugged in and is assigned as "/dev/sda1". This way the script will always back up files only to the right disk.