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

2013-08-26 Thread Anton
Question #234488 on sbackup changed: https://answers.launchpad.net/sbackup/+question/234488 Anton posted a new comment: p.s., the scripts work for me. They should work for you, too, but I cannot guarantee that. Please just ask if you run into problems. -- You received this question notification

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

2013-08-26 Thread Anton
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 futu

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

2013-08-26 Thread Anton
Question #234488 on sbackup changed: https://answers.launchpad.net/sbackup/+question/234488 Status: Open => Answered Anton proposed the following answer: I have something similar (I want to check which network my laptop is on, and if a succesful backup was already made this day), so I create

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

2013-08-26 Thread Anton
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/

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

2013-08-26 Thread Anton
Question #234488 on sbackup changed: https://answers.launchpad.net/sbackup/+question/234488 Anton posted a new comment: /usr/share/sbackup/retry_backup: #!/bin/bash # # retry running Sbackup if previous attempt failed # used by pm to run at thaw/resume # find config file and read some variables