#!/usr/bin/env sh target=/tmp/vtm.tar.xz tar \ --directory=.. \ --create \ --exclude='.git*' \ --exclude='tools*' \ vtm \ | xz \ > ${target} echo "-- written to ${target}"