From f496e4e9eda5d943f9c28257679da6d8588ff713 Mon Sep 17 00:00:00 2001 From: tofasthacker Date: Wed, 9 Aug 2023 00:16:46 +0000 Subject: [PATCH] add permision preservation --- backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup b/backup index 8caba75..5008c8e 100755 --- a/backup +++ b/backup @@ -29,7 +29,7 @@ tar -cvf $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 ""