You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
- #! /bin/bash
- if [ -z "$1" ]
- echo "Do you want to backup ~/$WORK directory? (yes/no)"
- read n
- if [ $n = yes -o $n = y ] ; then
- if [ ! -d ~/backups ] ; then
- mkdir ~/backups
- NAME=work-$(date +%d%-m%-y%).tar.gz
- tar -zcvf $DEST/$NAME ~/$WORK