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"
|
BACKUP_LOCATION="${1}backup-$(date +%Y-%m-%d).tar"
|
||||||
|
|
||||||
|
echo $BACKUP_LOCATION
|
||||||
|
|
||||||
COMPRESS=false
|
COMPRESS=false
|
||||||
|
|
||||||
rm -f $BACKUP_LOCATION
|
rm -f $BACKUP_LOCATION
|
||||||
@ -35,7 +37,7 @@ tar -pcvf $BACKUP_LOCATION ./*.bak
|
|||||||
while read folder; do
|
while read folder; do
|
||||||
# list the contents of each folder
|
# list the contents of each folder
|
||||||
echo -e "\e[32mBacking Up: $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
|
done < *.bak
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user