diff --git a/backup b/backup index 1680158..fcac484 100755 --- a/backup +++ b/backup @@ -7,6 +7,8 @@ fi BACKUP_LOCATION="${1}backup-$(date +%Y-%m-%d).tar" +echo $BACKUP_LOCATION + COMPRESS=false rm -f $BACKUP_LOCATION @@ -35,7 +37,7 @@ tar -pcvf $BACKUP_LOCATION ./*.bak while read folder; do # list the contents of each folder echo -e "\e[32mBacking Up: $folder" - tar -rfp $BACKUP_LOCATION $folder &>/dev/null + tar -r -p -f $BACKUP_LOCATION $folder &>/dev/null done < *.bak echo ""