mirror of
https://codeberg.org/hyperreal/bin
synced 2024-11-01 16:43:08 +01:00
9 lines
204 B
Bash
Executable File
9 lines
204 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
# Create a tarball from given directory.
|
|
|
|
dir_name="$1"
|
|
archive_name="${dir_name}-$(date '+%Y%m%d').tar.gz"
|
|
tar cvfz "$archive_name" "$1" && \
|
|
echo "Created archive $archive_name"
|