dotfiles/tools/.local/bin/backup_utility

4 lines
155 B
Plaintext
Raw Permalink Normal View History

2018-10-02 21:41:43 +01:00
#!/bin/bash
tar -czf "$(date +%Y-%m-%d)"_"$(basename $1)".tar.gz "$1" && sha256sum "$(date +%Y-%m-%d)"_"$(basename $1)".tar.gz >> "$(date +%Y-%m-%d)".sum