+ def get_backup_v10(self):
+ """
+ Retrieve a backup from Untangle version 10.
+
+ Returns the binary HTTPS response (i.e. the file).
+ """
+ url = self.base_url + '/webui/download'
+ post_vars = {'type': 'backup'}
+ post_data = urllib.parse.urlencode(post_vars).encode('ascii')
+ with self.opener.open(url, post_data) as response:
+ return response.read()
+
+
+ def get_backup_v13_1(self):
+ """
+ Retrieve a backup from Untangle version 13.1. This
+ differs from v13 (and v12, and v11,...) by only one word
+ in the URL: "webui" becomes "admin".
+
+ Returns the binary HTTPS response (i.e. the file).
+ """
+ url = self.base_url + '/admin/download'