add permision preservation

This commit is contained in:
tofasthacker 2023-08-09 00:16:46 +00:00
parent f05ac717d2
commit f496e4e9ed

2
backup
View File

@ -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 ""