Updates backup script, adds database backup script and modifies extract script
This commit is contained in:
parent
eb54b254ca
commit
0651268cba
3 changed files with 26 additions and 3 deletions
|
@ -31,6 +31,14 @@ if [ -f $1 ] ; then
|
|||
gunzip $1
|
||||
fi
|
||||
;;
|
||||
*.rar)
|
||||
if [ "$2" ]; then
|
||||
#tar xvf $1 -C $2
|
||||
echo "Look into how to unrar into directory"
|
||||
else
|
||||
unrar x $1
|
||||
fi
|
||||
;;
|
||||
*.tar)
|
||||
if [ "$2" ]; then
|
||||
tar xvf $1 -C $2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue