sys-backup-skel/scripts/backup_etc
2019-01-20 22:10:34 +01:00

5 lines
102 B
Bash

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