initial
This commit is contained in:
14
bin/make_archive
Executable file
14
bin/make_archive
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash -x
|
||||
|
||||
ARCHDIR="/home/paramah/Backups"
|
||||
GIT=`which git`
|
||||
PROJEKT=${PWD##*/}
|
||||
DATE=`date +%Y-%m-%d`
|
||||
|
||||
dir=$ARCHDIR/$PROJEKT
|
||||
|
||||
if [[ ! -e $dir ]]; then
|
||||
mkdir $dir
|
||||
fi
|
||||
|
||||
$GIT archive master --format=zip --output=$ARCHDIR/$PROJEKT/$DATE.zip
|
Reference in New Issue
Block a user