Open kenkendk opened 10 years ago
From kenneth@hexad.dk on June 17, 2013 01:43:57
I am not sure how to ask the OS for it, but usually it works by detecting the MAC address of the gateway device. On a large network, like university, you may have several gateways, so you would need to register multiple times, but I guess a smart setup would be just throttling with the home MAC.
Status: Accepted
Owner: kenneth@hexad.dk
From rryk...@gmail.com on June 17, 2013 03:06:30
Somehow Windows manages to detect the network as same regardless of the access point that I use across the campus. In my case I would set a higher throttling limit only in the university network (because backup server is located in the same network), and smaller limit everywhere else.
From kenneth@hexad.dk on June 17, 2013 03:08:14
Yes, but even with different access points, you are most likely still hitting the same gateway. On my university I hit the same gateway on both wired and wireless network.
As a starting point maybe this could be done in a binary fashion, meaning completely disallow backups to run when on specific networks or only allow backups when on specific networks. I like the MAC solution but more options are good as well like the suggestion in the WiFi issue below for reading SSID, another possibility would be to see if a specific machine is on the network (ping).
Related issues: Disallow uploads on selected WiFi networks. Monitor availability of backup storage devices
On Windows the sensible (to a user) binary way of doing it would be to respect the "metered network" flag.
Commenting here because #1705, which has a bounty and is specifically about the simple binary case, has been closed. Not sure why that is.
From rryk...@gmail.com on June 10, 2013 21:06:30
How are you using Duplicati now? Currently I can only set throttling options from anywhere. How would you like it to work? My backups are stored on a university computer. I would like to remove throttling limit when at university, but keep it at 300 Kbit/s at home to leave some bandwidth for other programs. Are there special considerations to this request? The big question is how to detect a specific network. Windows does detect it somehow in the Network and Sharing Center. Perhaps it's possible to query network name via some Windows API or use the same algorithm. I suspect they identify network by the router MAC address.
Original issue: http://code.google.com/p/duplicati/issues/detail?id=839