4 lines
155 B
Plaintext
4 lines
155 B
Plaintext
|
#!/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
|