dotfiles/tools/.local/bin/backup_utility
Diogo Cordeiro c6cc2d3f9d first commit
2021-02-18 17:53:07 +00:00

4 lines
155 B
Bash

#!/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