15 lines
		
	
	
		
			243 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			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
 |