You can launch a deja-dup backup with the command deja-dup --backup
.
With a cron job, you can automatically execute that command every so much time. This Askubuntu question provides stepwise instructions on how you can set up a cronjob.
For cron, you need the full path name to the application you want to run. You can find out the full path of deja-dup with the command:
$ which deja-dup
/usr/bin/deja-dup
To launch deja-dup as a cron job, we will thus use /usr/bin/deja-dup
in this example.
To edit the crontab file for adding or editing a job, one uses the command crontab -e
. This opens the crontab file in an editor, typically nano. You need to add one line for a job. In this case, to have your cornjob run every 30 minutes, your line may read
*/30 * * * * /usr/bin/deja-dup --backup