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