diff --git a/create-archive b/create-archive index 5228e4e..da3a0a8 100755 --- a/create-archive +++ b/create-archive @@ -2,7 +2,7 @@ # Create a tarball from given directory. -archive_name="$1.tar.gz" -archive_name=${archive_name/\//} -tar cvfz "$archive_name" "$1" -echo "Created archive $archive_name" +dir_name="$1" +archive_name="${dir_name}-$(date '+%Y%m%d').tar.gz" +tar cvfz "$archive_name" "$1" && \ + echo "Created archive $archive_name"