Skip to content

Instantly share code, notes, and snippets.

@btbytes
Created February 9, 2010 22:05
Show Gist options
  • Select an option

  • Save btbytes/299741 to your computer and use it in GitHub Desktop.

Select an option

Save btbytes/299741 to your computer and use it in GitHub Desktop.
#!/bin/sh
# tarit
# tar a given directory with timestamp.
fname=$1-`date +%Y-%m-%dT%H-%M`.tgz
tar czvf $fname $1
echo
echo $fname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment