fixed permisions
This commit is contained in:
parent
df83d343e3
commit
f52afee12b
4
backup
4
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 ""
|
||||
|
Loading…
Reference in New Issue
Block a user