Created
April 2, 2021 14:48
-
-
Save obar1/93ef0ac3cb3c132a23ad04a43e11ec1b 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/bash | |
# tar folder | |
set -u | |
set -x | |
prefix="kb_" | |
ts=`date +%s` | |
to_bkp='kb' | |
tar --exclude='.git' --exclude='_CODE' --exclude='_code' -cvzf ${prefix}${ts}.tar ${to_bkp} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment