Created
May 23, 2013 11:30
-
-
Save olih/5635430 to your computer and use it in GitHub Desktop.
Create a tar or tar.gz archive with a date using the ISO 8601 format.
1. Install the functions with your aliases (ex: .bash_profile MacOS)
2. Usage: tard folder
tarzd folder
This file contains 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
function tard { tar cvf $1-$(date +%Y-%m-%dT%H:%MZ).tar $1;} | |
export tard | |
function tarzd { tar cvfz $1-$(date +%Y-%m-%dT%H:%MZ).tar.gz $1;} | |
export tarzd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment