I have a deja-dup set up to backup into a mounted Truecrypt volume. It works fine but now I would like to run deja-dup in my own intervals via Cron (set up for my account):
* * * * * env DISPLAY=:0 deja-dup --backup
(the every-minute schedule is just for testing)
The job is started fine but deja-dup outputs that the destination is not available:
If I try to set up the Cron job through the "Scheduled Tasks" GUI and select it to be "X application", it's added to the Cron jobs as:
* * * * * /usr/bin/python /usr/share/gnome-schedule/xwrapper.py c 2 # JOB_ID_2
However, when the job is run, it fails in the same way as with my own Cron setting.
As the task starts just fine if I run it from terminal, my assumption is that for some reason the task started via cron doesn't have permission to access the mounted volume.
Q1: As the task is started from my user's Cron settings and should therefore run as my user, why wouldn't it have access to a mounted volume?
Q2: Could the reason of failure be something else than permissions?
Q3: Can you suggest some solution for this problem?