nssbackup-team team mailing list archive
-
nssbackup-team team
-
Mailing list archive
-
Message #03173
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/network/if-up.d/sbackup
#!/bin/sh
# If eth0 goes up, see if we can and should make a backup now:
if [ "$IFACE" = "eth0" ]; then
# 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
fi
exit $?
--
You received this question notification because you are a member of
Simple Backup Maintainers, which is an answer contact for sbackup.