#!/bin/bash ARCHIVE=$MOUNTPOINT/etc/$(hostname -s)_$(date +%F)_etc.tar.gz tar -cz -C /etc -f $ARCHIVE .