Closed karlseguin closed 6 years ago
Hi, thanks for the suggestion but this is a really specific wish and I consider it out of scope for this project.
This is better suited for a wrapper script around calling duplicity-backup.sh like so:
#!/bin/bash
SSID=$(iwgetid -r)
if [[ $SSID != "HOME_SSID" ]]; then
echo "Connected to unknown network: ${SSID}"
exit 1;
fi
/path/to/duplicity-backup.sh -c /path/to/config_file
Ok. Thanks for considering. Maybe someone googling will find this issue and at least learn how to implement it themselves.
Don't run unless you're connected to a known network. I use this to make sure I'm not backing up on a public wifi, which can have limits.
Right now, I just put:
at the top of the script. But having this as a configurable list would be better.