From f52afee12b31e07ed6c61760a4af3a397916d868 Mon Sep 17 00:00:00 2001 From: tofasthacker Date: Mon, 19 Feb 2024 18:26:11 -0500 Subject: [PATCH] fixed permisions --- backup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ""