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