i've installed a fresh ubuntu 16.04 LTS some days ago.
I tried to setup automatic backup with deja-dup as i had on my old system (ubuntu 14.04). I used to launch deja-dup from a script, and this script was executed at a scheduled time in cron, it worked decently.
I have tried to do the same thing on the new system but for some reason it doesn't run when it is launched from cron, it says "Another backup operation is already running."
ps aux | grep deja-dup output :
user 2909 0.0 0.1 378136 6944 ? Sl mars16 0:00 /usr/lib/x86_64-linux-gnu/deja-dup/deja-dup-monitor user 23785 0.0 0.0 16004 2204 pts/27 S+ 10:51 0:00 grep --color=auto deja-dup
Only the monitor is running, and i'm assuming this is fine (maybe i'm wrong), i tried to kill it and run the cron again but no luck.
I installed duplicity and running a simple deja-dup --backup is working fine. I also tried to clean the .cache/deja-dup/ with no success.
Here is the script that runs from cron :
#!/bin/sh ## test for an existing bus daemon, just to be safe if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then ## if not found, launch a new one eval `dbus-launch --sh-syntax --exit-with-session` fi # Launch deja-dup deja-dup --backup --display=:0
And here is the cron line :
30 20 * * * /path/to/backup_script.sh
I also tried to put a DEJA_DUP_DEBUG=1 in the backup_script.sh and redirecting the output to a text file, but it creates the file and do nothing else.
Any suggestions are welcome, thanks !
edit1 : deja-dup configuration is set to backup files to a local server with ssh.