Skip to content

Instantly share code, notes, and snippets.

@TonHabraken
TonHabraken / update-matchbox.sh
Last active January 1, 2016 05:59
Script which can be used to automatically update your LOGIK Matchbox shader set. Save it in /home/ for example and add to /etc/crontab for automation. Example of my crontab entry, it updates the shaders every night: 30 2 * * * root sh /home/update-matchbox.sh >/home/update-matchbox.log
#Script to update your MATCHBOX LOGIK shaders.
#Change MBDIR & BACKUPFILENAME to your needs!
#Copy this into a yourscript.sh .. and sh yourscript.sh to execute .. or add to /etc/crontab to automate it..
HOST=$(hostname)
DATE=$(date +%y_%m_%d)
MBDIR="[YOUR-LOGIK-SHADER-LOCATION]"
BACKUPFILENAME="[/YOUR-BACKUP-FILE-LOCATION]/LOGIK-BACKUP-"$DATE".tar.gz"