Files
dotfiles/bin/make_archive
2019-01-12 18:22:02 +01:00

15 lines
243 B
Bash
Executable File

#!/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