diff --git a/.github/ISSUE_TEMPLATE/bug_form.yaml b/.github/ISSUE_TEMPLATE/bug_form.yaml
index de98042ff..f010851a0 100644
--- a/.github/ISSUE_TEMPLATE/bug_form.yaml
+++ b/.github/ISSUE_TEMPLATE/bug_form.yaml
@@ -1,5 +1,5 @@
name: "Bug Report Form"
-description: "Report a bug or a similiar issue."
+description: "Report a bug or a similar issue."
body:
- type: markdown
attributes:
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index 7b2d69f95..13ec62b3d 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -1,6 +1,6 @@
---
name: Bug Report
-about: Report a bug or a similiar issue - the classic way
+about: Report a bug or a similar issue - the classic way
title: ''
labels: ''
assignees: ''
@@ -18,7 +18,7 @@ If you want to suggest a feature or have any other question, please use our
#### Description
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
index 86687a59e..ac806fcff 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -1,8 +1,8 @@
---
name: Feature Request
about: Suggest an idea for this project.
-title: 'FR: '
-labels: 'type:enhancement'
+title: ''
+labels: ''
assignees: ''
---
diff --git a/.github/actions/install-dependencies/action.yml b/.github/actions/install-dependencies/action.yml
new file mode 100644
index 000000000..e888476ae
--- /dev/null
+++ b/.github/actions/install-dependencies/action.yml
@@ -0,0 +1,22 @@
+name: Install Dependencies
+description: Installs system dependencies
+
+runs:
+ using: "composite"
+ steps:
+ - name: Install system dependencies (Linux)
+ if: runner.os == 'Linux'
+ shell: bash
+ run: |
+ sudo apt update && sudo apt install -y \
+ xvfb libssl-dev openssl libacl1-dev libacl1 fuse3 build-essential \
+ libxkbcommon-x11-0 dbus-x11 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 \
+ libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 libxcb-shape0 \
+ libegl1 libxcb-cursor0 libfuse-dev libsqlite3-dev libfuse3-dev pkg-config \
+ python3-pkgconfig libxxhash-dev borgbackup
+
+ - name: Install system dependencies (macOS)
+ if: runner.os == 'macOS'
+ shell: bash
+ run: |
+ brew install openssl readline xz xxhash pkg-config borgbackup
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
index 633ee06cf..1057ddb9e 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -15,7 +15,10 @@ inputs:
description: The python version to install
required: true
default: "3.10"
-
+ install-nox:
+ description: Whether nox shall be installed
+ required: false
+ default: "" # == false
runs:
using: "composite"
steps:
@@ -37,16 +40,20 @@ runs:
restore-keys: |
${{ runner.os }}-pip-
- - name: Install Vorta
+ - name: Install pre-commit
shell: bash
- run: |
- pip install -e .
- pip install -r requirements.d/dev.txt
+ run: pip install pre-commit
+
+ - name: Install nox
+ if: ${{ inputs.install-nox }}
+ shell: bash
+ run: pip install nox
- name: Hash python version
if: ${{ inputs.setup-pre-commit }}
shell: bash
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
+
- name: Caching for Pre-Commit
if: ${{ inputs.setup-pre-commit }}
uses: actions/cache@v3
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index d6e05f6a9..231c88ff4 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -36,7 +36,7 @@
- [ ] All new and existing tests passed.
-*I provide my contribution under the terms of the [license](./../../LICENSE.txt) of this repository and I affirm the [Developer Certificate of Origin][dco].*
+*I provide my contribution under the terms of the [license](./../LICENSE.txt) of this repository and I affirm the [Developer Certificate of Origin][dco].*
[dco]: https://developercertificate.org/
diff --git a/.github/scripts/generate-matrix.sh b/.github/scripts/generate-matrix.sh
new file mode 100644
index 000000000..3f6695611
--- /dev/null
+++ b/.github/scripts/generate-matrix.sh
@@ -0,0 +1,30 @@
+event_name="$1"
+branch_name="$2"
+
+if [[ "$event_name" == "workflow_dispatch" ]] || [[ "$branch_name" == "master" ]]; then
+ echo '{
+ "python-version": ["3.8", "3.9", "3.10", "3.11"],
+ "os": ["ubuntu-latest", "macos-latest"],
+ "borg-version": ["1.2.4"]
+ }' | jq -c . > matrix-unit.json
+
+ echo '{
+ "python-version": ["3.8", "3.9", "3.10", "3.11"],
+ "os": ["ubuntu-latest", "macos-latest"],
+ "borg-version": ["1.1.18", "1.2.2", "1.2.4", "2.0.0b5"],
+ "exclude": [{"borg-version": "2.0.0b5", "python-version": "3.8"}]
+ }' | jq -c . > matrix-integration.json
+
+elif [[ "$event_name" == "push" ]] || [[ "$event_name" == "pull_request" ]]; then
+ echo '{
+ "python-version": ["3.8", "3.9", "3.10", "3.11"],
+ "os": ["ubuntu-latest", "macos-latest"],
+ "borg-version": ["1.2.4"]
+ }' | jq -c . > matrix-unit.json
+
+ echo '{
+ "python-version": ["3.10"],
+ "os": ["ubuntu-latest"],
+ "borg-version": ["1.2.4"]
+ }' | jq -c . > matrix-integration.json
+fi
diff --git a/.github/stale.yml b/.github/stale.yml
index 60a650d61..150275de7 100644
--- a/.github/stale.yml
+++ b/.github/stale.yml
@@ -1,33 +1,37 @@
-# Number of days of inactivity before an issue becomes stale
-daysUntilStale: 60
+name: Close stale issues
+on:
+ schedule:
+ - cron: '50 1 * * *'
-# Number of days of inactivity before a stale issue is closed
-daysUntilClose: 7
+jobs:
+ stale:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/stale@v8
+ with:
+ days-before-issue-stale: 60
+ days-before-pr-stale: -1
+ days-before-issue-close: 7
+ # days-before-pr-close: 10
-# Issues with these labels will never be considered stale
-exemptLabels:
- - "status:idea"
- - "status:planning"
- - "status:on hold"
- - "status:ready"
- - "type:bug"
- - "type:docs"
- - "type:enhancement"
- - "type:feature"
- - "type:refactor"
- - "type:task"
+ stale-issue-label: "status:stale"
+ stale-pr-label: "status:stale"
-# Label to use when marking an issue as stale
-staleLabel: "status:stale"
+ exempt-issue-labels: >
+ status:idea,
+ status:planning,
+ status:on hold,
+ status:ready,
+ type:bug,
+ type:docs,
+ type:enhancement,
+ type:feature,
+ type:refactor,
+ type:task,
-# Comment to post when marking an issue as stale. Set to `false` to disable
-markComment: >
- This issue has been automatically marked as stale because it has not had
- recent activity. It will be closed if no further activity occurs. Thank you
- for your contributions.
-
-# Comment to post when closing a stale issue. Set to `false` to disable
-closeComment: false
-
-# Limit to only `issues` or `pulls`
-only: issues
+ stale-issue-message: >
+ This issue has been automatically marked as stale because it has not had
+ recent activity. It will be closed if no further activity occurs. Thank you
+ for your contributions.
+ close-issue-message: >
+ This issue was closed because it has been stalled for 7 days with no activity.
diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml
index 3a284022b..795d15486 100644
--- a/.github/workflows/build-macos.yml
+++ b/.github/workflows/build-macos.yml
@@ -50,6 +50,7 @@ jobs:
CERTIFICATE_NAME: ${{ secrets.MACOS_CERTIFICATE_NAME }}
APPLE_ID_USER: ${{ secrets.APPLE_ID_USER }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
+ APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
run: |
echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12
security create-keychain -p 123 build.keychain
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 59ee4914e..a533eaf86 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -26,49 +26,115 @@ jobs:
shell: bash
run: make lint
- test:
+ prepare-matrix:
+ runs-on: ubuntu-latest
+ outputs:
+ matrix-unit: ${{ steps.set-matrix-unit.outputs.matrix }}
+ matrix-integration: ${{ steps.set-matrix-integration.outputs.matrix }}
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Give execute permission to script
+ run: chmod +x ./.github/scripts/generate-matrix.sh
+
+ - name: Generate matrices
+ run: |
+ ./.github/scripts/generate-matrix.sh "${{ github.event_name }}" "${GITHUB_REF##refs/heads/}"
+
+ - name: Set matrix for unit tests
+ id: set-matrix-unit
+ run: echo "matrix=$(cat matrix-unit.json)" >> $GITHUB_OUTPUT
+
+ - name: Set matrix for integration tests
+ id: set-matrix-integration
+ run: echo "matrix=$(cat matrix-integration.json)" >> $GITHUB_OUTPUT
+
+ test-unit:
+ needs: prepare-matrix
timeout-minutes: 20
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
-
- matrix:
- python-version: ["3.8", "3.9", "3.10", "3.11"]
- os: [ubuntu-latest, macos-latest]
+ matrix: ${{fromJson(needs.prepare-matrix.outputs.matrix-unit)}}
steps:
- uses: actions/checkout@v3
- - name: Install system dependencies (Linux)
+ - name: Install system dependencies
+ uses: ./.github/actions/install-dependencies
+
+ - name: Setup python, vorta and dev deps
+ uses: ./.github/actions/setup
+ with:
+ python-version: ${{ matrix.python-version }}
+ install-nox: true
+
+ - name: Setup tmate session
+ uses: mxschmitt/action-tmate@v3
+ if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
+
+ - name: Run Unit Tests with pytest (Linux)
if: runner.os == 'Linux'
+ env:
+ BORG_VERSION: ${{ matrix.borg-version }}
run: |
- sudo apt update && sudo apt install -y \
- xvfb libssl-dev openssl libacl1-dev libacl1 build-essential borgbackup \
- libxkbcommon-x11-0 dbus-x11 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 \
- libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 libxcb-shape0 \
- libegl1 libxcb-cursor0
- - name: Install system dependencies (macOS)
+ xvfb-run --server-args="-screen 0 1024x768x24+32" \
+ -a dbus-run-session -- make test-unit
+
+ - name: Run Unit Tests with pytest (macOS)
if: runner.os == 'macOS'
- run: |
- brew install openssl readline xz borgbackup
+ env:
+ BORG_VERSION: ${{ matrix.borg-version }}
+ PKG_CONFIG_PATH: /usr/local/opt/openssl@3/lib/pkgconfig
+ run: echo $PKG_CONFIG_PATH && make test-unit
+
+ - name: Upload coverage to Codecov
+ uses: codecov/codecov-action@v3
+ env:
+ OS: ${{ runner.os }}
+ python: ${{ matrix.python-version }}
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ env_vars: OS, python
+
+ test-integration:
+ needs: prepare-matrix
+ timeout-minutes: 20
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix: ${{fromJson(needs.prepare-matrix.outputs.matrix-integration)}}
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Install system dependencies
+ uses: ./.github/actions/install-dependencies
- name: Setup python, vorta and dev deps
uses: ./.github/actions/setup
with:
python-version: ${{ matrix.python-version }}
+ install-nox: true
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
+ if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true'}}
- - name: Test with pytest (Linux)
+ - name: Run Integration Tests with pytest (Linux)
if: runner.os == 'Linux'
+ env:
+ BORG_VERSION: ${{ matrix.borg-version }}
run: |
xvfb-run --server-args="-screen 0 1024x768x24+32" \
- -a dbus-run-session -- make test
- - name: Test with pytest (macOS)
+ -a dbus-run-session -- make test-integration
+
+ - name: Run Integration Tests with pytest (macOS)
if: runner.os == 'macOS'
- run: make test
+ env:
+ BORG_VERSION: ${{ matrix.borg-version }}
+ PKG_CONFIG_PATH: /usr/local/opt/openssl@3/lib/pkgconfig
+ run: echo $PKG_CONFIG_PATH && make test-integration
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
diff --git a/.gitignore b/.gitignore
index 7d83381b0..2fdd4099d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,3 +28,4 @@ src/vorta/i18n/ts/vorta.en.ts
src/vorta/i18n/ts/vorta.en_US.ts
flatpak/app/
flatpak/.flatpak-builder/
+.vscode
diff --git a/Makefile b/Makefile
index 7b6307b9a..fbbb8b718 100644
--- a/Makefile
+++ b/Makefile
@@ -5,12 +5,19 @@ VERSION := $(shell python -c "from src.vorta._version import __version__; print(
.PHONY : help clean lint test
.DEFAULT_GOAL := help
+# Set Homebrew location to /opt/homebrew on Apple Silicon, /usr/local on Intel
+ifeq ($(shell uname -m),arm64)
+ export HOMEBREW = /opt/homebrew
+else
+ export HOMEBREW = /usr/local
+endif
+
clean:
rm -rf dist/*
dist/Vorta.app: ## Build macOS app locally (without Borg)
pyinstaller --clean --noconfirm package/vorta.spec
- cp -R /usr/local/Caskroom/sparkle/*/Sparkle.framework dist/Vorta.app/Contents/Frameworks/
+ cp -R ${HOMEBREW}/Caskroom/sparkle/*/Sparkle.framework dist/Vorta.app/Contents/Frameworks/
rm -rf build/vorta dist/vorta
dist/Vorta.dmg: dist/Vorta.app ## Create notarized macOS DMG for distribution.
@@ -60,7 +67,13 @@ lint:
pre-commit run --all-files --show-diff-on-failure
test:
- pytest --cov=vorta
+ nox -- --cov=vorta
+
+test-unit:
+ nox -- --cov=vorta tests/unit
+
+test-integration:
+ nox -- --cov=vorta tests/integration
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
diff --git a/README.md b/README.md
index d436d6670..b58d1e5e4 100644
--- a/README.md
+++ b/README.md
@@ -11,11 +11,9 @@
-🤝 **This project is part of the [Google Summer of Code](https://summerofcode.withgoogle.com/) 2023 program. Apply or learn more [here](https://github.com/borgbase/vorta/wiki/Google-Summer-of-Code-2023-Ideas)!**
-
Vorta is a backup client for macOS and Linux desktops. It integrates the mighty [BorgBackup](https://borgbackup.readthedocs.io) with your desktop environment to protect your data from disk failure, ransomware and theft.
-![](https://files.qmax.us/vorta/screencast-8-small.gif)
+https://github.com/m3nu/vorta/assets/3916435/a622a148-5373-4ae0-87bc-4ca1d6f6202e
## Why is this great? 🤩
@@ -30,15 +28,16 @@ Learn more on [Vorta's website](https://vorta.borgbase.com).
## Installation
Vorta should work on all platforms that support Qt and Borg. This includes macOS, Ubuntu, Debian, Fedora, Arch Linux and many others. Windows is currently not supported by Borg, but this may change in the future.
-See our website for [download links and and install instructions](https://vorta.borgbase.com/install).
+See our website for [download links and install instructions](https://vorta.borgbase.com/install).
## Connect and Contribute
- To discuss everything around using, improving, packaging and translating Vorta, join the [discussion on Github](https://github.com/borgbase/vorta/discussions).
- Report bugs by opening a new [Github issue](https://github.com/borgbase/vorta/issues/new/choose).
- Want to contribute to Vorta? Great! See our [contributor guide](https://vorta.borgbase.com/contributing/) on how to help out with coding, translation and packaging.
+- We currently have students from the Google Summer Of Code 2023 Program contributing to this project.
## License and Credits
- See [CONTRIBUTORS.md](CONTRIBUTORS.md) to see who programmed and translated Vorta.
-- Licensed under [GPLv3](LICENSE.txt). © 2018-2020 Manuel Riel and Vorta contributors
+- Licensed under [GPLv3](LICENSE.txt). © 2018-2023 Manuel Riel and Vorta contributors
- Based on [PyQt](https://riverbankcomputing.com/software/pyqt/intro) and [Qt](https://www.qt.io).
-- Icons by [FontAwesome](https://fontawesome.com)
+- Icons by [Fork Awesome](https://forkaweso.me/) (licensed under [SIL Open Font License](https://scripts.sil.org/OFL), Version 1.1) and Material Design icons by Google (licensed under [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt)). See the `src/vorta/assets/icons` folder for a copy of applicable licenses.
diff --git a/noxfile.py b/noxfile.py
new file mode 100644
index 000000000..b5f6fdfa0
--- /dev/null
+++ b/noxfile.py
@@ -0,0 +1,56 @@
+import os
+import re
+import sys
+
+import nox
+
+borg_version = os.getenv("BORG_VERSION")
+
+if borg_version:
+ # Use specified borg version
+ supported_borgbackup_versions = [borg_version]
+else:
+ # Generate a list of borg versions compatible with system installed python version
+ system_python_version = tuple(sys.version_info[:3])
+
+ supported_borgbackup_versions = [
+ borgbackup
+ for borgbackup in ("1.1.18", "1.2.2", "1.2.4", "2.0.0b6")
+ # Python version requirements for borgbackup versions
+ if (borgbackup == "1.1.18" and system_python_version >= (3, 5, 0))
+ or (borgbackup == "1.2.2" and system_python_version >= (3, 8, 0))
+ or (borgbackup == "1.2.4" and system_python_version >= (3, 8, 0))
+ or (borgbackup == "2.0.0b6" and system_python_version >= (3, 9, 0))
+ ]
+
+
+@nox.session
+@nox.parametrize("borgbackup", supported_borgbackup_versions)
+def run_tests(session, borgbackup):
+ # install borgbackup
+ if sys.platform == 'darwin':
+ # in macOS there's currently no fuse package which works with borgbackup directly
+ session.install(f"borgbackup=={borgbackup}")
+ elif borgbackup == "1.1.18":
+ # borgbackup 1.1.18 doesn't support pyfuse3
+ session.install("llfuse")
+ session.install(f"borgbackup[llfuse]=={borgbackup}")
+ else:
+ session.install(f"borgbackup[pyfuse3]=={borgbackup}")
+
+ # install dependencies
+ session.install("-r", "requirements.d/dev.txt")
+ session.install("-e", ".")
+
+ # check versions
+ cli_version = session.run("borg", "--version", silent=True).strip()
+ cli_version = re.search(r"borg (\S+)", cli_version).group(1)
+ python_version = session.run("python", "-c", "import borg; print(borg.__version__)", silent=True).strip()
+
+ session.log(f"Borg CLI version: {cli_version}")
+ session.log(f"Borg Python version: {python_version}")
+
+ assert cli_version == borgbackup
+ assert python_version == borgbackup
+
+ session.run("pytest", *session.posargs, env={"BORG_VERSION": borgbackup})
diff --git a/package/fix_app_qt_folder_names_for_codesign.py b/package/fix_app_qt_folder_names_for_codesign.py
index 0adfb03f9..cbd5805de 100644
--- a/package/fix_app_qt_folder_names_for_codesign.py
+++ b/package/fix_app_qt_folder_names_for_codesign.py
@@ -18,10 +18,10 @@ def create_symlink(folder: Path) -> None:
"""Create the appropriate symlink in the MacOS folder
pointing to the Resources folder.
"""
- sibbling = Path(str(folder).replace("MacOS", ""))
+ sibling = Path(str(folder).replace("MacOS", ""))
# PyQt6/Qt/qml/QtQml/Models.2
- root = str(sibbling).partition("Contents")[2].lstrip("/")
+ root = str(sibling).partition("Contents")[2].lstrip("/")
# ../../../../
backward = "../" * (root.count("/") + 1)
# ../../../../Resources/PyQt6/Qt/qml/QtQml/Models.2
@@ -41,7 +41,7 @@ def fix_dll(dll: Path) -> None:
def match_func(pth: str) -> Optional[str]:
"""Callback function for MachO.rewriteLoadCommands() that is
- called on every lookup path setted in the DLL headers.
+ called on every lookup path set in the DLL headers.
By returning None for system libraries, it changes nothing.
Else we return a relative path pointing to the good file
in the MacOS folder.
@@ -73,7 +73,7 @@ def find_problematic_folders(folder: Path) -> Generator[Path, None, None]:
"""Recursively yields problematic folders (containing a dot in their name)."""
for path in folder.iterdir():
if not path.is_dir() or path.is_symlink():
- # Skip simlinks as they are allowed (even with a dot)
+ # Skip symlinks as they are allowed (even with a dot)
continue
if "." in path.name:
yield path
@@ -83,7 +83,7 @@ def find_problematic_folders(folder: Path) -> Generator[Path, None, None]:
def move_contents_to_resources(folder: Path) -> Generator[Path, None, None]:
"""Recursively move any non symlink file from a problematic folder
- to the sibbling one in Resources.
+ to the sibling one in Resources.
"""
for path in folder.iterdir():
if path.is_symlink():
@@ -91,10 +91,10 @@ def move_contents_to_resources(folder: Path) -> Generator[Path, None, None]:
if path.name == "qml":
yield from move_contents_to_resources(path)
else:
- sibbling = Path(str(path).replace("MacOS", "Resources"))
- sibbling.parent.mkdir(parents=True, exist_ok=True)
- shutil.move(path, sibbling)
- yield sibbling
+ sibling = Path(str(path).replace("MacOS", "Resources"))
+ sibling.parent.mkdir(parents=True, exist_ok=True)
+ shutil.move(path, sibling)
+ yield sibling
def main(args: List[str]) -> int:
diff --git a/package/macos-package-app.sh b/package/macos-package-app.sh
index 64950ca1a..1ed7a28e9 100644
--- a/package/macos-package-app.sh
+++ b/package/macos-package-app.sh
@@ -7,7 +7,8 @@ APP_BUNDLE_ID="com.borgbase.client.macos"
APP_BUNDLE="Vorta"
# CERTIFICATE_NAME="Developer ID Application: Joe Doe (XXXXXX)"
# APPLE_ID_USER="name@example.com"
-# APPLE_ID_PASSWORD="@keychain:Notarization"
+# APPLE_ID_PASSWORD="CHANGEME"
+# APPLE_TEAM_ID="CNMSCAXT48"
# Sign app bundle, Sparkle and Borg
@@ -37,38 +38,13 @@ create-dmg \
"Vorta.dmg" \
"Vorta.app"
-
# Notarize DMG
-RESULT=$(xcrun altool --notarize-app --type osx \
- --primary-bundle-id $APP_BUNDLE_ID \
- --username $APPLE_ID_USER --password $APPLE_ID_PASSWORD \
- --file "$APP_BUNDLE.dmg" --output-format xml)
-
-REQUEST_UUID=$(echo "$RESULT" | xpath5.18 "//key[normalize-space(text()) = 'RequestUUID']/following-sibling::string[1]/text()" 2> /dev/null)
-
-# Poll for notarization status
-echo "Submitted notarization request $REQUEST_UUID, waiting for response..."
-sleep 60
-while true
-do
- RESULT=$(xcrun altool --notarization-info "$REQUEST_UUID" \
- --username "$APPLE_ID_USER" \
- --password "$APPLE_ID_PASSWORD" \
- --output-format xml)
- STATUS=$(echo "$RESULT" | xpath5.18 "//key[normalize-space(text()) = 'Status']/following-sibling::string[1]/text()" 2> /dev/null)
-
- if [ "$STATUS" = "success" ]; then
- echo "Notarization of $APP_BUNDLE succeeded!"
- break
- elif [ "$STATUS" = "in progress" ]; then
- echo "Notarization in progress..."
- sleep 20
- else
- echo "Notarization of $APP_BUNDLE failed:"
- echo "$RESULT"
- exit 1
- fi
-done
+xcrun notarytool submit \
+ --output-format plist --wait --timeout 10m \
+ --apple-id $APPLE_ID_USER \
+ --password $APPLE_ID_PASSWORD \
+ --team-id $APPLE_TEAM_ID \
+ "$APP_BUNDLE.dmg"
# Staple the notary ticket
xcrun stapler staple $APP_BUNDLE.dmg
diff --git a/package/vorta.spec b/package/vorta.spec
index 714228c74..4559bc0d1 100644
--- a/package/vorta.spec
+++ b/package/vorta.spec
@@ -23,6 +23,7 @@ a = Analysis([os.path.join(SRC_DIR, '__main__.py')],
datas=[
(os.path.join(SRC_DIR, 'assets/UI/*'), 'assets/UI'),
(os.path.join(SRC_DIR, 'assets/icons/*'), 'assets/icons'),
+ (os.path.join(SRC_DIR, 'assets/exclusion_presets/*'), 'assets/exclusion_presets'),
(os.path.join(SRC_DIR, 'i18n/qm/*'), 'vorta/i18n/qm'),
],
hiddenimports=[
diff --git a/requirements.d/dev.txt b/requirements.d/dev.txt
index 239dfbff6..5391c54a0 100644
--- a/requirements.d/dev.txt
+++ b/requirements.d/dev.txt
@@ -2,6 +2,8 @@ black==22.*
coverage
flake8
macholib
+nox
+pkgconfig
pre-commit
pyinstaller
pylint
diff --git a/setup.cfg b/setup.cfg
index edddb2f15..e0cdd9319 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -37,8 +37,8 @@ package_dir =
include_package_data = true
python_requires = >=3.8
install_requires =
- platformdirs >=3.0.0, <4.0.0; sys_platform == 'darwin' # for macOS: breaking changes in 3.0.0,
- platformdirs >=2.6.0, <4.0.0; sys_platform != 'darwin' # for others: 2.6+ works consistently.
+ platformdirs >=3.0.0, <5.0.0; sys_platform == 'darwin' # for macOS: breaking changes in 3.0.0,
+ platformdirs >=2.6.0, <5.0.0; sys_platform != 'darwin' # for others: 2.6+ works consistently.
pyqt6
peewee
psutil
@@ -47,6 +47,7 @@ install_requires =
pyobjc-core < 10; sys_platform == 'darwin'
pyobjc-framework-Cocoa < 10; sys_platform == 'darwin'
pyobjc-framework-LaunchServices < 10; sys_platform == 'darwin'
+ pyobjc-framework-CoreWLAN < 10; sys_platform == 'darwin'
tests_require =
pytest
pytest-qt
diff --git a/src/vorta/_version.py b/src/vorta/_version.py
index e4e49b3bb..8969d4966 100644
--- a/src/vorta/_version.py
+++ b/src/vorta/_version.py
@@ -1 +1 @@
-__version__ = '0.9.0'
+__version__ = '0.9.1'
diff --git a/src/vorta/application.py b/src/vorta/application.py
index fac38440b..8857a51eb 100644
--- a/src/vorta/application.py
+++ b/src/vorta/application.py
@@ -173,8 +173,9 @@ def set_borg_details_result(self, result):
"""
if 'version' in result['data']:
borg_compat.set_version(result['data']['version'], result['data']['path'])
- self.main_window.miscTab.set_borg_details(borg_compat.version, borg_compat.path)
+ self.main_window.aboutTab.set_borg_details(borg_compat.version, borg_compat.path)
self.main_window.repoTab.toggle_available_compression()
+ self.main_window.archiveTab.toggle_compact_button_visibility()
self.scheduler.reload_all_timers() # Start timer after Borg version is set.
else:
self._alert_missing_borg()
@@ -307,11 +308,6 @@ def check_failed_response(self, result: Dict[str, Any]):
Displays a `QMessageBox` with an error message depending on the
return code of the `BorgJob`.
-
- Parameters
- ----------
- repo_url : str
- The url of the repo of concern
"""
# extract data from the params for the borg job
repo_url = result['params']['repo_url']
@@ -324,7 +320,7 @@ def check_failed_response(self, result: Dict[str, Any]):
# No fail
logger.warning('VortaApp.check_failed_response was called with returncode 0')
elif returncode == 130:
- # Keyboard interupt
+ # Keyboard interrupt
pass
else: # Real error
# Create QMessageBox
@@ -343,7 +339,7 @@ def check_failed_response(self, result: Dict[str, Any]):
elif returncode > 128:
# 128+N - killed by signal N (e.g. 137 == kill -9)
signal = returncode - 128
- text = self.tr('Repository data check for repo was killed by signal %s.') % (signal)
+ text = self.tr('Repository data check for repo was killed by signal %s.') % signal
infotext = self.tr('The process running the check job got a kill signal. Try again.')
else:
# Real error
diff --git a/src/vorta/assets/UI/abouttab.ui b/src/vorta/assets/UI/abouttab.ui
new file mode 100644
index 000000000..52f40f7b1
--- /dev/null
+++ b/src/vorta/assets/UI/abouttab.ui
@@ -0,0 +1,315 @@
+
+
+ Form
+
+
+
+ 0
+ 0
+ 791
+ 497
+
+
+
+ Form
+
+
+
+ 12
+
+
+ 12
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+ 5
+
+
+ 0
+
+
-
+
+
-
+
+
+ Qt::AlignHCenter
+
+
+ 5
+
+
+ 10
+
+
-
+
+
+ Vorta Version:
+
+
+
+ -
+
+
+ 0.0
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+
+
+ -
+
+
+ Qt::AlignHCenter
+
+
+ 5
+
+
+ 10
+
+
+ 10
+
+
-
+
+
+ Borg Version:
+
+
+
+ -
+
+
+ 1.1.8
+
+
+
+
+
+ -
+
+
+ 10
+
+
-
+
+
+ /usr/bin/borg
+
+
+
+
+
+ -
+
+
+ QFrame::HLine
+
+
+ QFrame::Sunken
+
+
+
+ -
+
+
+ Qt::AlignHCenter
+
+
+ 5
+
+
+ 10
+
+
-
+
+
+ <html><head/><body><p><a href="https://github.com/borgbase/vorta/issues/new/choose"><span style=" text-decoration: underline; color:#0984e3;">Click here</span></a> to report a bug.</p></body></html>
+
+
+ true
+
+
+
+
+
+ -
+
+
+ Qt::AlignHCenter
+
+
+ 10
+
+
-
+
+
+ <html><head/><body><p><a href="file:///"><span style=" text-decoration: underline; color:#0984e3;">View the logs</span></a></p></body></html>
+
+
+ 0
+
+
+ true
+
+
+
+
+
+ -
+
+
+ Qt::AlignHCenter
+
+
+ 5
+
+
+ 10
+
+
-
+
+
+ <html><head/><body><p><a href="https://borgbackup.readthedocs.io/en/master/index.html"><span style=" text-decoration: underline; color:#0984e3;"> Click here</span></a> to view the docs.</p></body></html>
+
+
+ true
+
+
+
+
+
+ -
+
+
+ Qt::AlignHCenter
+
+
+ 5
+
+
+ 10
+
+
+ 10
+
+
-
+
+
+ <html><head/><body><p><a href="https://github.com/borgbase/vorta"><span style=" text-decoration: underline; color:#0984e3;">Click here</span></a> to view Git repo.</p></body></html>
+
+
+ true
+
+
+
+
+
+ -
+
+
+ QFrame::HLine
+
+
+ QFrame::Sunken
+
+
+
+ -
+
+
+ Qt::AlignHCenter
+
+
+ 20
+
+
-
+
+
+
+ Vorta is a cross-platform, open-source client designed to simplify the management of Borg backups.
+
+ Copyright (C) 2018-2020 Manuel Riel and Vorta contributors (see CONTRIBUTORS.md)
+
+
+
+ 0
+
+
+
+
+
+ -
+
+
+ 10
+
+
+ 10
+
+
+ 20
+
+
+ Qt::AlignHCenter
+
+
-
+
+
+ -
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 40
+ 20
+
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+
+
+
+
+
diff --git a/src/vorta/assets/UI/archivetab.ui b/src/vorta/assets/UI/archivetab.ui
index 3e3b0b4c5..9c81d49f2 100644
--- a/src/vorta/assets/UI/archivetab.ui
+++ b/src/vorta/assets/UI/archivetab.ui
@@ -142,9 +142,6 @@
false
-
- true
-
false
@@ -173,6 +170,11 @@
Name
+
+
+ Trigger
+
+
-
@@ -207,10 +209,29 @@
- Refresh selected archive
+ Recalculate selected archive's size(s)
+
+
+ Recalculate
+
+
+ Qt::ToolButtonTextBesideIcon
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Compare two archives
- Refresh
+ Diff
Qt::ToolButtonTextBesideIcon
@@ -255,7 +276,7 @@
- -
+
-
@@ -274,60 +295,41 @@
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Delete selected archive(s)
+
+
+ Delete
+
+
+ Qt::ToolButtonTextBesideIcon
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
- -
-
-
- Qt::Vertical
-
-
-
- 20
- 40
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Compare two archives
-
-
- Diff
-
-
- Qt::ToolButtonTextBesideIcon
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Delete selected archive(s)
-
-
- Delete
-
-
- Qt::ToolButtonTextBesideIcon
-
-
-
diff --git a/src/vorta/assets/UI/excludedialog.ui b/src/vorta/assets/UI/excludedialog.ui
new file mode 100644
index 000000000..f1b4bab64
--- /dev/null
+++ b/src/vorta/assets/UI/excludedialog.ui
@@ -0,0 +1,153 @@
+
+
+ Dialog
+
+
+
+ 0
+ 0
+ 504
+ 426
+
+
+
+ Add patterns to exclude
+
+
+
+ 10
+
+ -
+
+
+ 0
+
+
+
+ Custom
+
+
+
-
+
+
+ true
+
+
+
+ -
+
+
+ -
+
+
-
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
+
+
+
+ Presets
+
+
+ -
+
+
+ true
+
+
+
+ -
+
+
+
+
+
+
+ Raw
+
+
+ -
+
+
+ true
+
+
+
+ -
+
+
+
+
+
+
+ Preview
+
+
+ -
+
+
+ true
+
+
+
+ -
+
+
+ -
+
+
-
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+ Copy to Clipboard
+
+
+
+
+
+
+
+
+
+ -
+
+
+ QDialogButtonBox::Close
+
+
+
+
+
+
+
+
diff --git a/src/vorta/assets/UI/mainwindow.ui b/src/vorta/assets/UI/mainwindow.ui
index a8b67caea..911c5ea67 100644
--- a/src/vorta/assets/UI/mainwindow.ui
+++ b/src/vorta/assets/UI/mainwindow.ui
@@ -12,7 +12,7 @@
- 800
+ 1000
600
@@ -23,28 +23,9 @@
1.000000000000000
-
+
-
-
-
- 12
-
-
- 0
-
-
-
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
-
-
-
+
-
@@ -53,184 +34,282 @@
-
-
-
+
+
- 300
- 0
+ 200
+ 400
-
- QComboBox::AdjustToContents
-
-
-
- -
-
-
- Add a new profile (Dropdown: Import from file)
-
-
-
- 16
- 16
-
-
-
- QToolButton::MenuButtonPopup
-
-
-
- -
-
-
- Rename current profile
-
-
-
- 16
- 16
-
-
-
-
- -
-
-
- Export current profile
-
-
-
+
+ Qt::ScrollBarAsNeeded
-
-
-
- Delete current profile
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+ 20
+ 20
+
+
+
+ QToolButton::InstantPopup
+
+
+
+ -
+
+
+ Delete current profile
+
+
+
+ 20
+ 20
+
+
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 40
+ 40
+
+
+
+
+ -
+
+
+ Rename current profile
+
+
+
+ 20
+ 20
+
+
+
+
+ -
+
+
+ Export current profile
+
+
+
+ 20
+ 20
+
+
+
+
+
+
+
+
-
-
+
- Qt::Horizontal
+ Qt::Vertical
- 40
- 20
+ 20
+ 40
-
-
- -
-
-
-
- 0
- 0
-
-
-
- false
-
-
- false
-
-
-
-
- 0
- 0
-
-
-
- Repository
-
-
-
-
- Sources
-
-
-
-
- Schedule
-
-
-
-
- Archives
-
-
-
-
- Misc
-
-
-
-
- -
-
-
-
-
-
- false
+
-
+
+
+ Settings / About
150
- 0
+ 40
-
- false
+
+ Qt::NoFocus
-
- Cancel
+
+ QPushButton:focus { border: none; outline: none; }
false
- -
-
-
-
- 0
- 0
-
-
-
- true
-
-
-
- -
-
-
-
- 0
- 0
-
+
-
+
+
+ Qt::Vertical
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+ QSizePolicy::Fixed
-
- true
+
+
+ 20
+ 20
+
-
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ false
+
+
+ false
+
+
+
+
+ 0
+ 0
+
+
+
+ Settings
+
+
+
+
+ About
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ false
+
+
+ false
+
+
+
+
+ 0
+ 0
+
+
+
+ Repository
+
+
+
+
+ Sources
+
+
+
+
+ Schedule
+
+
+
+
+ Archives
+
+
+
+
+ -
+
+
-
+
+
+ false
+
+
+
+ 150
+ 0
+
+
+
+ false
+
+
+ Cancel
+
+
+ false
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ true
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
+ true
+
+
+
+
+
+
+
diff --git a/src/vorta/assets/UI/misctab.ui b/src/vorta/assets/UI/misctab.ui
index f60dfbe7d..6ec1d908b 100644
--- a/src/vorta/assets/UI/misctab.ui
+++ b/src/vorta/assets/UI/misctab.ui
@@ -43,113 +43,6 @@
- -
-
-
- 5
-
-
- 0
-
-
-
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
-
-
-
- -
-
-
- Vorta Version:
-
-
-
- -
-
-
- 0.0
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
- <html><head/><body><p>| <a href="https://github.com/borgbase/vorta/issues/new/choose"><span style=" text-decoration: underline; color:#0984e3;">Report</span></a> a Bug |</p></body></html>
-
-
- true
-
-
-
- -
-
-
- <html><head/><body><p><a href="file:///"><span style=" text-decoration: underline; color:#0984e3;">Log</span></a></p></body></html>
-
-
- 0
-
-
- true
-
-
-
-
-
- -
-
-
- 5
-
-
- 0
-
-
-
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
-
-
-
- -
-
-
- Borg Version:
-
-
-
- -
-
-
- 1.1.8
-
-
-
- -
-
-
- /usr/bin/borg
-
-
-
-
-
diff --git a/src/vorta/assets/UI/repoadd.ui b/src/vorta/assets/UI/repoadd.ui
index 643e2a774..b11c1482e 100644
--- a/src/vorta/assets/UI/repoadd.ui
+++ b/src/vorta/assets/UI/repoadd.ui
@@ -1,278 +1,236 @@
- AddRepository
-
-
-
- 0
- 0
- 466
- 274
-
-
-
+ AddRepository
+
+
+ true
+
+
+ Add Repository
+
+
+
+ 0
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 20
+
+
+
+
+ 11
+
+
+
+
+
+
+ Qt::PlainText
+
+
+ false
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
+
true
-
-
-
- 0
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 0
- 20
-
-
-
-
- 11
-
-
-
-
-
-
- Qt::PlainText
-
-
- false
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
-
-
- true
-
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ 0
+
+
+
+ General
+
+
+
+ QFormLayout::ExpandingFieldsGrow
+
+
+ 5
+
+
+ 5
+
+
+ 5
+
+
+ 20
+
+
-
+
+
+
+ true
+
+
+
+ Initialize New Backup Repository
+
-
- -
-
-
-
- 0
- 0
-
-
-
- 0
-
-
-
- General
-
-
-
- QFormLayout::ExpandingFieldsGrow
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
-
- true
-
-
-
- Initialize New Backup Repository
-
-
-
- -
-
-
- Repository URL:
-
-
-
- -
-
-
- 0
-
-
- 0
-
-
-
-
-
- ssh://abc123@abc123.repo.borgbase.com/./repo
-
-
-
- -
-
-
- Choose a local folder
-
-
- ...
-
-
-
- :/icons/folder-open.svg:/icons/folder-open.svg
-
-
-
- -
-
-
- Choose a remote repository
-
-
- ...
-
-
-
- :/icons/globe.svg:/icons/globe.svg
-
-
-
-
-
- -
-
-
- Borg passphrase:
-
-
-
- -
-
-
- true
-
-
- QLineEdit::Password
-
-
-
- -
-
-
- true
-
-
- QLineEdit::Password
-
-
-
- -
-
-
- Confirm passphrase:
-
-
-
- -
-
-
- TextLabel
-
-
-
-
+
+ -
+
+
+ Repository URL:
+
+
+
+ -
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+ ssh://abc123@abc123.repo.borgbase.com/./repo
+
+
+
+ -
+
+
+ Choose a local folder
+
+
+ ...
+
+
+
+ :/icons/folder-open.svg:/icons/folder-open.svg
+
-
-
- Advanced
-
-
-
- QFormLayout::ExpandingFieldsGrow
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
- SSH Key:
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
-
- Automatically choose SSH Key (default)
-
-
-
-
- -
-
-
- Encryption:
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- -
-
-
- Extra Borg Arguments:
-
-
-
- -
-
-
-
+
+ -
+
+
+ Choose a remote repository
+
+
+ ...
+
+
+
+ :/icons/globe.svg:/icons/globe.svg
+
+
+
+
+
+ -
+
+
+ Repository Name:
+
+
+
+ -
+
+
+ Macbook Pro Office (optional)
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+ Advanced
+
+
+
+ QFormLayout::ExpandingFieldsGrow
+
+
+ 5
+
+
+ 5
+
+
+ 5
+
+
+ 5
+
+ -
+
+
+ SSH Key:
+
-
- -
-
-
- QDialogButtonBox::Cancel|QDialogButtonBox::Ok
+
+ -
+
+
+
+ 0
+ 0
+
+
+
-
+
+ Automatically choose SSH Key (default)
+
+
+
+ -
+
+
+ Extra Borg Arguments:
+
-
-
-
-
-
+
+ -
+
+
+
+
+
+
+ -
+
+
+ QDialogButtonBox::Cancel|QDialogButtonBox::Ok
+
+
+
+
+
+
+
diff --git a/src/vorta/assets/UI/scheduletab.ui b/src/vorta/assets/UI/scheduletab.ui
index d7c8ea860..56942c17c 100644
--- a/src/vorta/assets/UI/scheduletab.ui
+++ b/src/vorta/assets/UI/scheduletab.ui
@@ -633,6 +633,19 @@
+ -
+
+
+ <html><head/><body><p><a href="file:///"><span style=" text-decoration: underline; color:#0984e3;">View the logs</span></a></p></body></html>
+
+
+ 0
+
+
+ true
+
+
+
diff --git a/src/vorta/assets/UI/sourcetab.ui b/src/vorta/assets/UI/sourcetab.ui
index f0af8c385..fb5ae7981 100644
--- a/src/vorta/assets/UI/sourcetab.ui
+++ b/src/vorta/assets/UI/sourcetab.ui
@@ -13,7 +13,7 @@
Form
-
+
12
@@ -112,6 +112,16 @@
+ -
+
+
+ Manage Excluded Items…
+
+
+
+ -
+
+
-
@@ -147,65 +157,6 @@
- -
-
-
- 12
-
-
-
-
-
- <html><head/><body><p>Exclude Patterns (<a href="https://borgbackup.readthedocs.io/en/stable/usage/help.html#borg-help-patterns"><span style=" text-decoration: underline; color:#0984e3;">more</span></a>):</p></body></html>
-
-
- true
-
-
-
- -
-
-
- Exclude If Present (exclude folders with these files):
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- QAbstractScrollArea::AdjustToContentsOnFirstShow
-
-
-
-
-
- E.g. */.cache
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- QAbstractScrollArea::AdjustToContentsOnFirstShow
-
-
- E.g. .nobackup
-
-
-
-
-
diff --git a/src/vorta/assets/exclusion_presets/browsers.json b/src/vorta/assets/exclusion_presets/browsers.json
new file mode 100644
index 000000000..1acf5862b
--- /dev/null
+++ b/src/vorta/assets/exclusion_presets/browsers.json
@@ -0,0 +1,71 @@
+[
+ {
+ "name": "Chromium cache and config files",
+ "slug": "chromium-cache",
+ "patterns":
+ [
+ "fm:*/.config/chromium/*/Local Storage",
+ "fm:*/.config/chromium/*/Session Storage",
+ "fm:*/.config/chromium/*/Service Worker/CacheStorage",
+ "fm:*/.config/chromium/*/Application Cache",
+ "fm:*/.config/chromium/*/History Index *",
+ "fm:*/snap/chromium/common/.cache",
+ "fm:*/snap/chromium/*/.config/chromium/*/Service Worker/CacheStorage",
+ "fm:*/snap/chromium/*/.local/share/"
+ ],
+ "tags":["application:chromium", "type:browser", "os:linux"],
+ "author": "Divi"
+ },
+ {
+ "name": "Google Chrome cache and config files",
+ "slug": "google-chrome-cache",
+ "patterns":
+ [
+ "fm:*/.config/google-chrome/ShaderCache",
+ "fm:*/.config/google-chrome/*/Local Storage",
+ "fm:*/.config/google-chrome/*/Session Storage",
+ "fm:*/.config/google-chrome/*/Application Cache",
+ "fm:*/.config/google-chrome/*/History Index *",
+ "fm:*/.config/google-chrome/*/Service Worker/CacheStorage"
+ ],
+ "tags": ["application:chrome", "type:browser", "os:linux"],
+ "author": "Divi"
+ },
+ {
+ "name": "Brave cache and config files",
+ "slug": "brave-cache",
+ "patterns":[
+ "fm:*/.config/BraveSoftware/Brave-Browser/*/Feature Engagement Tracker/",
+ "fm:*/.config/BraveSoftware/Brave-Browser/*/Local Storage/",
+ "fm:*/.config/BraveSoftware/Brave-Browser/*/Service Worker/CacheStorage/",
+ "fm:*/.config/BraveSoftware/Brave-Browser/*/Session Storage/",
+ "fm:*/.config/BraveSoftware/Brave-Browser/Safe Browsing/",
+ "fm:*/.config/BraveSoftware/Brave-Browser/ShaderCache/"
+ ],
+ "tags": ["application:brave", "type:browser", "os:linux"],
+ "author": "Divi"
+ },
+ {
+ "name": "Mozilla Firefox cache and config files",
+ "slug": "firefox-cache",
+ "patterns":[
+ "fm:*/.mozilla/firefox/*/Cache",
+ "fm:*/.mozilla/firefox/*/minidumps",
+ "fm:*/.mozilla/firefox/*/.parentlock",
+ "fm:*/.mozilla/firefox/*/urlclassifier3.sqlite",
+ "fm:*/.mozilla/firefox/*/blocklist.xml",
+ "fm:*/.mozilla/firefox/*/extensions.sqlite",
+ "fm:*/.mozilla/firefox/*/extensions.sqlite-journal",
+ "fm:*/.mozilla/firefox/*/extensions.rdf",
+ "fm:*/.mozilla/firefox/*/extensions.ini",
+ "fm:*/.mozilla/firefox/*/extensions.cache",
+ "fm:*/.mozilla/firefox/*/XUL.mfasl",
+ "fm:*/.mozilla/firefox/*/XPC.mfasl",
+ "fm:*/.mozilla/firefox/*/xpti.dat",
+ "fm:*/.mozilla/firefox/*/compreg.dat",
+ "fm:*/.mozilla/firefox/*/pluginreg.dat"
+ ],
+ "tags": ["application:firefox", "type:browser", "os:linux"],
+ "author": "Divi"
+ }
+]
diff --git a/src/vorta/assets/exclusion_presets/dev.json b/src/vorta/assets/exclusion_presets/dev.json
new file mode 100644
index 000000000..bf53fb5bb
--- /dev/null
+++ b/src/vorta/assets/exclusion_presets/dev.json
@@ -0,0 +1,60 @@
+[
+ {
+ "name": "Node Modules and package manager cache",
+ "slug": "node-cache",
+ "patterns":
+ [
+ "fm:*/node_modules",
+ "fm:*/.npm",
+ "fm:*/npm-global"
+ ],
+ "tags": ["type:dev", "lang:javascript", "os:linux", "os:darwin"],
+ "author": "Divi"
+ },
+ {
+ "name": "Python cache and virtualenv",
+ "slug": "python-cache",
+ "patterns":
+ [
+ "fm:*/__pycache__",
+ "fm:*.pyc",
+ "fm:*.pyo",
+ "fm:*/.virtualenvs"
+ ],
+ "tags": ["type:dev", "lang:python", "os:linux", "os:darwin"],
+ "author": "Divi"
+ },
+ {
+ "name": "Rust artefacts",
+ "slug": "rust-artefacts",
+ "patterns":
+ [
+ "fm:*/.cargo",
+ "fm:*/.rustup"
+ ],
+ "tags": ["type:dev", "lang:rust", "os:linux", "os:darwin"],
+ "author": "Divi"
+ },
+ {
+ "name": "Visual Studio Code cache and config files",
+ "slug": "vscode-cache",
+ "patterns": [
+ "fm:*/.config/Code",
+ "fm:*/.vscode/extensions/*"
+ ],
+ "tags": ["type:editor", "editor:vscode", "os:linux"],
+ "author": "shivansh02"
+ },
+ {
+ "name": "Android Studio Artefacts",
+ "slug": "android-studio",
+ "patterns": [
+ "fm:*/.android",
+ "fm:*/.gradle",
+ "fm:*/Android/Sdk",
+ "fm:*/.AndroidStudio"
+ ],
+ "tags": ["type:dev", "editor:android-studio", "os:linux"],
+ "author": "shivansh02"
+ }
+]
diff --git a/src/vorta/assets/icons/APACHE.txt b/src/vorta/assets/icons/APACHE.txt
new file mode 100644
index 000000000..4a2c5e0fa
--- /dev/null
+++ b/src/vorta/assets/icons/APACHE.txt
@@ -0,0 +1,204 @@
+/!\ The Apache version 2 license applies to all SVG icon files in this directory that
+have a copyright header referring to "Material Design icons by Google".
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/src/vorta/assets/icons/OFL.txt b/src/vorta/assets/icons/OFL.txt
new file mode 100644
index 000000000..ba54e1d7c
--- /dev/null
+++ b/src/vorta/assets/icons/OFL.txt
@@ -0,0 +1,99 @@
+/!\ The SIL OPEN FONT LICENSE applies to all SVG icon files in this directory that
+don't have any other copyright information.
+
+
+Copyright (c) 2018, Fork Awesome (https://forkawesome.github.io),
+with Reserved Font Name Fork Awesome.
+
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/src/vorta/assets/icons/angle-down-solid.svg b/src/vorta/assets/icons/angle-down-solid.svg
index e3a02036a..05ce3ecbf 100644
--- a/src/vorta/assets/icons/angle-down-solid.svg
+++ b/src/vorta/assets/icons/angle-down-solid.svg
@@ -1,6 +1,2 @@
-
-
+
+
diff --git a/src/vorta/assets/icons/angle-up-solid.svg b/src/vorta/assets/icons/angle-up-solid.svg
index 7ba776f28..b93c1b201 100644
--- a/src/vorta/assets/icons/angle-up-solid.svg
+++ b/src/vorta/assets/icons/angle-up-solid.svg
@@ -1,5 +1,2 @@
-
-
+
+
diff --git a/src/vorta/assets/icons/broom-solid.svg b/src/vorta/assets/icons/broom-solid.svg
index 929a9fa56..cc3556bc3 100644
--- a/src/vorta/assets/icons/broom-solid.svg
+++ b/src/vorta/assets/icons/broom-solid.svg
@@ -1 +1,2 @@
-
+
+
diff --git a/src/vorta/assets/icons/copy.svg b/src/vorta/assets/icons/copy.svg
index 13e0c87df..3dd95a141 100644
--- a/src/vorta/assets/icons/copy.svg
+++ b/src/vorta/assets/icons/copy.svg
@@ -1,2 +1,2 @@
-
-
+
+
diff --git a/src/vorta/assets/icons/eye-slash.svg b/src/vorta/assets/icons/eye-slash.svg
index 4f37a51a9..e4d04343c 100644
--- a/src/vorta/assets/icons/eye-slash.svg
+++ b/src/vorta/assets/icons/eye-slash.svg
@@ -1,8 +1,14 @@
-