(1) #!/bin/bash (2) SRCD="/home/" (3) TGTD="/var/backups/" (4) OF=home-$(date +%Y%m%d).tgz (5) tar -cZf $TGTD$OF $SRCD