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.
 
 
 

26 lines
471 B

  1. .PHONY: all
  2. all: test-list
  3. venv: requirements.txt
  4. python3 -m venv venv
  5. venv/bin/pip3 install -r requirements.txt
  6. .PHONY: test-list
  7. test-list: venv
  8. venv/bin/mypy lister.py
  9. venv/bin/python lister.py --max-size 1GiB --one-file-system /tmp >/dev/null
  10. .PHONY: check
  11. check:
  12. shellcheck -f gcc borg-setup.sh
  13. .PHONY: test
  14. test:
  15. rm -rf /tmp/test-borg
  16. BORG_DIR=/tmp/test-borg ./borg-setup.sh
  17. ls -al /tmp/test-borg
  18. .PHONY: deploy
  19. deploy:
  20. scp borg-setup.sh psy:/www/psy