My backup scripts and tools
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- .PHONY: all
- all: test-list
-
- venv: requirements.txt
- python3 -m venv venv
- venv/bin/pip3 install -r requirements.txt
-
- .PHONY: test-list
- test-list: venv
- venv/bin/mypy lister.py
- venv/bin/python lister.py --max-size 1GiB --one-file-system /tmp >/dev/null
-
- .PHONY: check
- check:
- shellcheck -f gcc borg-setup.sh
-
- .PHONY: test
- test:
- rm -rf /tmp/test-borg
- BORG_DIR=/tmp/test-borg ./borg-setup.sh
- ls -al /tmp/test-borg
-
- .PHONY: deploy
- deploy:
- scp borg-setup.sh psy:/www/psy
|