#!/bin/bash BACKDIR=etcconfig-`date +%Y-%m-%d-%s` mkdir -p /mnt/$BACKDIR cp /etc/*.conf /mnt/$BACKDIR