#!/bin/sh

# decompressdir  foldername
#
# Compress a folder to *.tar.gz archive without problems
# caused by GUI (Engrampa) with certain symlinks.
#
# MUST be used to backup certain GLF Linux OS build
# configuration filesets.

# Expects a single parameter:  
#         The folder name under the current directory
#         to be archived (no spaces)
if [ "$#" -ne 1 ]; then
    printf 'You must provide a folder name as one and only one argument!\n' >&2
    exit 1
fi

tar --checkpoint=1000 --checkpoint-action=dot -xzf "$1.tar.gz"

