Updates backup script, adds database backup script and modifies extract script

This commit is contained in:
Jonathan Hodgson 2018-07-07 13:42:47 +01:00
parent fea427cb1e
commit 3064491345
3 changed files with 26 additions and 3 deletions

View file

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