using FreeNAS/FreeBSD syntax at the CLI

Hi all, I just found this magical tool and installed it in a FreeNAS jail to sync my data to GDrive. A-ma-zing! I am still learning this and FreeNAS, but hoping maybe someone already has something done and is will to share/help me.

What I like to have happen is for RClone to run nightly and sync my files to gdrive then when complete email me with a list of what has been synced. I’d also like to get a notification if it fails if that is possible. Before someone suggests “just write a script to do it.” Let me preface it by saying that I don’t know how to or that would be my first thought. Im only 2 months into FreeNAS and using FreeNAS/FreeBSD syntax at the CLI

First things first is figure out what you want to do at the command line.

Once youve got that down then you’ll want to read up on cron.

You’ll end up putting something like this in your crontab

* * * * * /path/to/rclone src dst ...

If you put this in your crontab

EMAIL=you@example.com

Then crontab will email you the output of the commands in the crontab.

That should be enough to get you going hopefully!