diff --git a/backup b/backup index 002c6e1..a2f3d36 100755 --- a/backup +++ b/backup @@ -29,7 +29,7 @@ tar -pcvf $BACKUP_LOCATION ./*.bak while read folder; do # list the contents of each folder echo -e "\e[32mbackingup: $folder" - tar -rf $BACKUP_LOCATION $folder &>/dev/null + tar -rfp $BACKUP_LOCATION $folder &>/dev/null done < *.bak echo ""