Last active
December 16, 2019 23:24
-
-
Save heqzha/667606c383e58ade36f4cac523018e99 to your computer and use it in GitHub Desktop.
backup current folder with datetime by zip
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
parent=`basename $(pwd)` | |
zip -r "$parent-$(date +"%Y-%m-%dT%H-%M-%S").zip" ./* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment