I love Dejadup but I really want to be able to backup every hour or half an hour. I do a lot of work with files on my computer so I would need such an option. I believe the only way to do it is to schedule tasks like dejadup-backup every hour or so, but how can I do that on Ubuntu 18.04?
Thanks!
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:
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