Skip to content
Snippets Groups Projects
Commit 4cf2afd5 authored by Radoslav Bodó's avatar Radoslav Bodó
Browse files

general: yamllint to dev env

parent 7b953a6c
No related branches found
No related tags found
No related merge requests found
Pipeline #7687 passed
all: coverage lint all: coverage lint
install: install:
apt-get -y install awscli python3-boto3 python3-pydantic python3-tabulate restic yamllint apt-get -y install awscli python3-boto3 python3-pydantic python3-tabulate restic
install-dev: install-dev:
apt-get -y install python3-venv snapd apt-get -y install python3-venv snapd yamllint
python3 -m venv venv python3 -m venv venv
venv/bin/pip install -U pip venv/bin/pip install -U pip
venv/bin/pip install -r requirements.lock venv/bin/pip install -r requirements.lock
...@@ -19,7 +19,7 @@ lint-py: ...@@ -19,7 +19,7 @@ lint-py:
python3 -m pylint rwm.py tests scripts python3 -m pylint rwm.py tests scripts
lint-yaml: lint-yaml:
yamllint --strict . yamllint --strict . examples/*.conf
test: test:
# show stderr with "-o log_cli=true" # show stderr with "-o log_cli=true"
......
# rwm aws, storage # rwm aws, storage
---
s3_endpoint_url: "" s3_endpoint_url: ""
s3_access_key: "" s3_access_key: ""
s3_secret_key: "" s3_secret_key: ""
# rwm aws, restic, backup, backup_all # rwm aws, restic, backup, backup_all
---
s3_endpoint_url: "" s3_endpoint_url: ""
s3_access_key: "" s3_access_key: ""
s3_secret_key: "" s3_secret_key: ""
......
# rwm aws, restic, backup, backup_all # rwm aws, restic, backup, backup_all
---
s3_endpoint_url: "" s3_endpoint_url: ""
s3_access_key: "" s3_access_key: ""
s3_secret_key: "" s3_secret_key: ""
...@@ -12,8 +12,8 @@ backups: ...@@ -12,8 +12,8 @@ backups:
filesdirs: filesdirs:
- "/" - "/"
excludes: excludes:
#- "*.cache" # - "*.cache"
#- "*.log" # - "*.log"
- "/dev/*" - "/dev/*"
- "/home/*/.cache/*" - "/home/*/.cache/*"
- "/media/*" - "/media/*"
......
# rwm aws, restic # rwm aws, restic
---
s3_endpoint_url: "" s3_endpoint_url: ""
s3_access_key: "" s3_access_key: ""
s3_secret_key: "" s3_secret_key: ""
......
...@@ -120,7 +120,7 @@ class RWMConfig(BaseModel): ...@@ -120,7 +120,7 @@ class RWMConfig(BaseModel):
Dictionary containing named backup configurations. Dictionary containing named backup configurations.
retention: retention:
Dictionary containing retention policies for Restic repository. Dictionary containing retention policies for Restic repository.
Keys and values corresponds to a `restic forget` command `--keep*` options without leading dashes. Keys and values corresponds to a `restic forget` command `--keep*` options without leading dashes.
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment