Question #182109 on sbackup changed:
https://answers.launchpad.net/sbackup/+question/182109

Dragos Toader posted a new comment:
Just dbus-launch per session before calling sbackup in your cron job. No biggie.
Here is my full workaround:

------------------------------------------------------------------------------------------

#############
# "/home/dtoader/My Documents/linux/backups/launchDbus.sh"
#############
#!/bin/bash

if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    ## if not found, launch a new one
    eval `dbus-launch --sh-syntax --exit-with-session`
    echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
fi

------------------------------------------------------------------------------------------

#############
# "/home/dtoader/My Documents/linux/backups/sbackup500.conf"
#############
[general]
maxincrement = 1
format = 1
followlinks = 0
target = /home/backup500/files
purge = 5
mountdir = /home/dtoader/.local/share/sbackup/mountdir500
lockfile = /var/lock/sbackup/sbackup500.lock
splitsize = 0

[exclude]
regex = \.xxxxxxxxxx
maxsize = 9999220736

[log]
level = 20
file = /home/dtoader/.local/share/sbackup/log/sbackup500.log

[places]
prefix = /usr

[schedule]

[dirconfig]
/home/dtoader = 1
/root = 1
/etc = 1
/home/backup501 = 0
/home/backup500 = 0
/home/dtoader/.pulse = 0

[report]
from = SBackup Daemon <n...@dtoader-desktop.ext>

------------------------------------------------------------------------------------------

#############
#"/etc/cron.d/sbackup500"
#############
# /etc/cron.d/sbackup500
# At 12 PM every day
# m h dom mon dow user  command
0 12 * * *      root    "/home/dtoader/My 
Documents/linux/backups/launchDbus.sh"; /usr/bin/sbackup --no-indicator 
--no-dbus --conf="/home/dtoader/My Documents/linux/backups/sbackup500.conf"

-- 
You received this question notification because you are a member of
Simple Backup Maintainers, which is an answer contact for sbackup.

_______________________________________________
Mailing list: https://launchpad.net/~nssbackup-team
Post to     : nssbackup-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~nssbackup-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to