Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
update [2010-11-10 11:15]
Joakim Forsgren
update [2017-09-01 14:54] (current)
Line 15: Line 15:
 TIMESTAMP=`date +%Y-%m-%d-%H.%M` TIMESTAMP=`date +%Y-%m-%d-%H.%M`
 if [[ -f "​${1}.tgz"​ ]] ; then if [[ -f "​${1}.tgz"​ ]] ; then
-        ​echo "​Backup..."​ +  ​echo "​Backup..."​ 
-        tar czf wiki_backup_${TIMESTAMP}.tgz dokuwiki/  +  tar czf wiki_backup_${TIMESTAMP}.tgz dokuwiki/  
-        echo "​Extract..."​ +  echo "​Extract..."​ 
-        tar xzf ${1}.tgz +  tar xzf ${1}.tgz 
-        echo "​Copy..."​ +  echo "​Copy..."​ 
-        cp -fr ${1}/* dokuwiki/​. +  cp -fr ${1}/* dokuwiki/​. 
-        echo "Clean up..."​ +  echo "Clean up..."​ 
-        rm -fr ${1}*  ​+  rm -fr ${1}*  ​
 else else
   echo "No file named: ${1}.tgz"​   echo "No file named: ${1}.tgz"​
 fi fi
 </​code>​ </​code>​