#! /bin/bash

[ $# -lt 1 ] && echo "missing dstination" && exit 1
DST=$1

tar \
    --exclude "$HOME/local" \
    --exclude "$HOME/usr/git" \
    --exclude "$HOME/usr/media" \
    --exclude "$HOME/.ccache" \
    --exclude "$HOME/.gem" \
    --exclude "$HOME/.local/share/Trash" \
    --exclude "$HOME/.local/share/Steam" \
    --exclude "$HOME/_wip" \
    --exclude "$HOME/.cache/mozilla" \
    --exclude "$HOME/.cache/winetricks" \
    --exclude "$HOME/.thumbnails" \
    -cvzf $DST $HOME/