avoid backups over ssh when using internet over wwan

Asked by User XyZ!

How can i avoid backups over ssh when I'm using the internet over wwan?

Thanks

Question information

Language:
German Edit question
Status:
Answered
For:
Back In Time Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Germar (germar) said :
#1

You can create a user-callback which will return a non-zero returncode on 'Backup process start' sequence if you're on wwan. BIT >= 1.1.0 will stop creating a new snapshot when it receive a non-zero returncode.

#!/bin/bash
case "$3" in
    1) if [ <USING_WWAN> ]; then
             exit(1)
         fi
         ;;
esac

Revision history for this message
Germar (germar) said :
#2

Oh, sorry. I mixed up Python and Shell code. It must be 'exit 1'

Can you help with this problem?

Provide an answer of your own, or ask User XyZ! for more information if necessary.

To post a message you must log in.