← Back to team overview

nssbackup-team team mailing list archive

Re: [Question #234488]: lauching a task before backup

 

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

Anton posted a new comment:
/etc/pm/sleep.d/20_sbackup

#!/bin/bash
case "$1" in
    thaw|resume)
	# start backup 5 minutes in the future to allow network to come up:
        echo /usr/share/sbackup/retry_backup | at  now + 5 min >/dev/null
        ;;
    *)
        ;;
esac
exit $?

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