bup 0.13.2__tar.gz → 0.13.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bup-0.13.2/bup.egg-info → bup-0.13.3}/PKG-INFO +22 -1
- bup-0.13.3/README.md +36 -0
- {bup-0.13.2 → bup-0.13.3}/bup/__version__.py +1 -1
- {bup-0.13.2 → bup-0.13.3}/bup/gui/run_backup_widget.py +3 -0
- {bup-0.13.2 → bup-0.13.3}/bup/preferences.py +9 -2
- {bup-0.13.2 → bup-0.13.3/bup.egg-info}/PKG-INFO +22 -1
- {bup-0.13.2 → bup-0.13.3}/bup.egg-info/requires.txt +1 -0
- {bup-0.13.2 → bup-0.13.3}/pyproject.toml +1 -0
- bup-0.13.2/README.md +0 -16
- {bup-0.13.2 → bup-0.13.3}/LICENSE +0 -0
- {bup-0.13.2 → bup-0.13.3}/LICENSE.txt +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/LICENSE +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/__init__.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/__main__.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/arguments.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/aws_cli.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/backup_types.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/bup.ico +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/bup.png +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/bup_base.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/cli/__init__.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/cli/cli_main.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/dynamodb_backup.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/github_backup.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/gpl-3.0.md +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/gui/__init__.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/gui/about.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/gui/bup_dialog.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/gui/gui_icon.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/gui/gui_main.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/gui/log_widget.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/gui/preferences_widget.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/log_routing.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/robust_os_calls.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/s3_backup.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup/ui_types.py +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup.egg-info/SOURCES.txt +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup.egg-info/dependency_links.txt +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup.egg-info/entry_points.txt +0 -0
- {bup-0.13.2 → bup-0.13.3}/bup.egg-info/top_level.txt +0 -0
- {bup-0.13.2 → bup-0.13.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bup
|
|
3
|
-
Version: 0.13.
|
|
3
|
+
Version: 0.13.3
|
|
4
4
|
Summary: backup all your AWS S3 buckets and DynamoDB tables, and github repos to a backup directory/folder
|
|
5
5
|
Author-email: abel <j@abel.co>
|
|
6
6
|
License-Expression: GPL-3.0-only
|
|
@@ -31,6 +31,7 @@ Provides-Extra: dev
|
|
|
31
31
|
Requires-Dist: wheel; extra == "dev"
|
|
32
32
|
Requires-Dist: black; extra == "dev"
|
|
33
33
|
Requires-Dist: pytest; extra == "dev"
|
|
34
|
+
Requires-Dist: moto[server]; extra == "dev"
|
|
34
35
|
Requires-Dist: coverage; extra == "dev"
|
|
35
36
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
36
37
|
Requires-Dist: pyship; extra == "dev"
|
|
@@ -44,6 +45,26 @@ Dynamic: license-file
|
|
|
44
45
|
|
|
45
46
|
backup for github repos and AWS S3 and DynamoDB
|
|
46
47
|
|
|
48
|
+
# Exclusions
|
|
49
|
+
|
|
50
|
+
Each backup type (S3, DynamoDB, GitHub) has an exclusion list: names to skip, one per line. S3 entries are bucket
|
|
51
|
+
names, DynamoDB entries are table names, and GitHub entries are either a repo name (`my-repo`) or `owner/my-repo`.
|
|
52
|
+
Exclusion lists are edited in the GUI's "Exclusions" box for each backup type.
|
|
53
|
+
|
|
54
|
+
The same syntax applies to all three lists (S3 buckets, DynamoDB tables, and GitHub repos):
|
|
55
|
+
|
|
56
|
+
- `#` starts a comment that runs to the end of the line. This works for whole-line comments and for inline
|
|
57
|
+
trailing comments, e.g. `my-bucket # too big, backed up elsewhere`.
|
|
58
|
+
- Blank and whitespace-only lines are ignored.
|
|
59
|
+
- Leading and trailing whitespace around a name is ignored, so ` my-bucket ` matches `my-bucket`.
|
|
60
|
+
- Names are matched exactly (no wildcards).
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
# S3 buckets to skip
|
|
64
|
+
logs-archive # 2 TB, backed up by a lifecycle rule instead
|
|
65
|
+
scratch-bucket
|
|
66
|
+
```
|
|
67
|
+
|
|
47
68
|
# Security Notes
|
|
48
69
|
|
|
49
70
|
- Credentials you enter (AWS secret access key, GitHub token) are stored **unencrypted** in a local
|
bup-0.13.3/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# bup
|
|
2
|
+
|
|
3
|
+
backup for github repos and AWS S3 and DynamoDB
|
|
4
|
+
|
|
5
|
+
# Exclusions
|
|
6
|
+
|
|
7
|
+
Each backup type (S3, DynamoDB, GitHub) has an exclusion list: names to skip, one per line. S3 entries are bucket
|
|
8
|
+
names, DynamoDB entries are table names, and GitHub entries are either a repo name (`my-repo`) or `owner/my-repo`.
|
|
9
|
+
Exclusion lists are edited in the GUI's "Exclusions" box for each backup type.
|
|
10
|
+
|
|
11
|
+
The same syntax applies to all three lists (S3 buckets, DynamoDB tables, and GitHub repos):
|
|
12
|
+
|
|
13
|
+
- `#` starts a comment that runs to the end of the line. This works for whole-line comments and for inline
|
|
14
|
+
trailing comments, e.g. `my-bucket # too big, backed up elsewhere`.
|
|
15
|
+
- Blank and whitespace-only lines are ignored.
|
|
16
|
+
- Leading and trailing whitespace around a name is ignored, so ` my-bucket ` matches `my-bucket`.
|
|
17
|
+
- Names are matched exactly (no wildcards).
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
# S3 buckets to skip
|
|
21
|
+
logs-archive # 2 TB, backed up by a lifecycle rule instead
|
|
22
|
+
scratch-bucket
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
# Security Notes
|
|
26
|
+
|
|
27
|
+
- Credentials you enter (AWS secret access key, GitHub token) are stored **unencrypted** in a local
|
|
28
|
+
SQLite preferences database in your user profile. Prefer AWS profiles (`~/.aws/credentials`) over
|
|
29
|
+
raw keys where possible, and treat the preferences database with the same care as a credentials file.
|
|
30
|
+
- GitHub authentication for clone/pull is passed to git via the process environment, so the token is
|
|
31
|
+
not written into each backup's `.git/config`. Backups made by older versions of bup may still have
|
|
32
|
+
a token embedded in their remote URL; bup scrubs these the next time each repo is pulled.
|
|
33
|
+
|
|
34
|
+
# Acknowledgements
|
|
35
|
+
|
|
36
|
+
<div>Icons made by <a href="https://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
|
|
@@ -107,6 +107,9 @@ class BackupWidget(QGroupBox):
|
|
|
107
107
|
# read exclusions into the DB
|
|
108
108
|
exclusions = ExclusionPreferences(self.backup_type.name)
|
|
109
109
|
self.display_boxes[display_type].text_box.setText("\n".join(exclusions.get()))
|
|
110
|
+
self.display_boxes[display_type].text_box.setToolTip(
|
|
111
|
+
"One name per line. '#' starts a comment (whole line or trailing, e.g. 'my-bucket # note'). Blank lines and surrounding whitespace are ignored."
|
|
112
|
+
)
|
|
110
113
|
self.display_boxes[display_type].text_box.textChanged.connect(self.exclusions_save_timer.start)
|
|
111
114
|
else:
|
|
112
115
|
self.display_boxes[display_type].text_box.setReadOnly(True)
|
|
@@ -73,5 +73,12 @@ class ExclusionPreferences(PrefOrderedSet):
|
|
|
73
73
|
super().__init__(__application_name__, __author__, f"exclusions_{exclusion_type}")
|
|
74
74
|
|
|
75
75
|
def get_no_comments(self) -> List[str]:
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
"""
|
|
77
|
+
Exclusion entries with rudimentary sanitization applied: anything from a "#" to the end of the line is a comment
|
|
78
|
+
(so both whole-line comments and inline trailing comments such as "my-bucket # note" are supported), comments and
|
|
79
|
+
blank/whitespace-only lines are dropped, and leading/trailing whitespace is stripped from the remaining entries
|
|
80
|
+
so that e.g. "my-bucket " still matches "my-bucket". "#" can not appear in S3 bucket, DynamoDB table, or GitHub
|
|
81
|
+
repo names, so there is no need for an escape.
|
|
82
|
+
"""
|
|
83
|
+
entries_without_comments = [s.split("#", 1)[0].strip() for s in super().get()]
|
|
84
|
+
return [s for s in entries_without_comments if len(s) > 0]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bup
|
|
3
|
-
Version: 0.13.
|
|
3
|
+
Version: 0.13.3
|
|
4
4
|
Summary: backup all your AWS S3 buckets and DynamoDB tables, and github repos to a backup directory/folder
|
|
5
5
|
Author-email: abel <j@abel.co>
|
|
6
6
|
License-Expression: GPL-3.0-only
|
|
@@ -31,6 +31,7 @@ Provides-Extra: dev
|
|
|
31
31
|
Requires-Dist: wheel; extra == "dev"
|
|
32
32
|
Requires-Dist: black; extra == "dev"
|
|
33
33
|
Requires-Dist: pytest; extra == "dev"
|
|
34
|
+
Requires-Dist: moto[server]; extra == "dev"
|
|
34
35
|
Requires-Dist: coverage; extra == "dev"
|
|
35
36
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
36
37
|
Requires-Dist: pyship; extra == "dev"
|
|
@@ -44,6 +45,26 @@ Dynamic: license-file
|
|
|
44
45
|
|
|
45
46
|
backup for github repos and AWS S3 and DynamoDB
|
|
46
47
|
|
|
48
|
+
# Exclusions
|
|
49
|
+
|
|
50
|
+
Each backup type (S3, DynamoDB, GitHub) has an exclusion list: names to skip, one per line. S3 entries are bucket
|
|
51
|
+
names, DynamoDB entries are table names, and GitHub entries are either a repo name (`my-repo`) or `owner/my-repo`.
|
|
52
|
+
Exclusion lists are edited in the GUI's "Exclusions" box for each backup type.
|
|
53
|
+
|
|
54
|
+
The same syntax applies to all three lists (S3 buckets, DynamoDB tables, and GitHub repos):
|
|
55
|
+
|
|
56
|
+
- `#` starts a comment that runs to the end of the line. This works for whole-line comments and for inline
|
|
57
|
+
trailing comments, e.g. `my-bucket # too big, backed up elsewhere`.
|
|
58
|
+
- Blank and whitespace-only lines are ignored.
|
|
59
|
+
- Leading and trailing whitespace around a name is ignored, so ` my-bucket ` matches `my-bucket`.
|
|
60
|
+
- Names are matched exactly (no wildcards).
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
# S3 buckets to skip
|
|
64
|
+
logs-archive # 2 TB, backed up by a lifecycle rule instead
|
|
65
|
+
scratch-bucket
|
|
66
|
+
```
|
|
67
|
+
|
|
47
68
|
# Security Notes
|
|
48
69
|
|
|
49
70
|
- Credentials you enter (AWS secret access key, GitHub token) are stored **unencrypted** in a local
|
bup-0.13.2/README.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# bup
|
|
2
|
-
|
|
3
|
-
backup for github repos and AWS S3 and DynamoDB
|
|
4
|
-
|
|
5
|
-
# Security Notes
|
|
6
|
-
|
|
7
|
-
- Credentials you enter (AWS secret access key, GitHub token) are stored **unencrypted** in a local
|
|
8
|
-
SQLite preferences database in your user profile. Prefer AWS profiles (`~/.aws/credentials`) over
|
|
9
|
-
raw keys where possible, and treat the preferences database with the same care as a credentials file.
|
|
10
|
-
- GitHub authentication for clone/pull is passed to git via the process environment, so the token is
|
|
11
|
-
not written into each backup's `.git/config`. Backups made by older versions of bup may still have
|
|
12
|
-
a token embedded in their remote URL; bup scrubs these the next time each repo is pulled.
|
|
13
|
-
|
|
14
|
-
# Acknowledgements
|
|
15
|
-
|
|
16
|
-
<div>Icons made by <a href="https://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|