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