Skip to content

Commit

Permalink
add shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
k2s committed Apr 8, 2014
1 parent 6777975 commit 8fb14bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xtbackup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

php_bin=`which php`
xtbackup_dir=`readlink -f $0`
xtbackup_dir=`dirname $xtbackup_dir`

cd "$xtbackup_dir"
$php_bin -d open_basedir="/tmp:$xtbackup_dir" -f xtbackup.php -- $@

0 comments on commit 8fb14bb

Please sign in to comment.