4 lines
155 B
Bash
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
|