Created
February 9, 2010 22:05
-
-
Save btbytes/299741 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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