From 8fb14bba2d526e1cdeae463ff6c8754417620ab4 Mon Sep 17 00:00:00 2001 From: Martin Minka Date: Tue, 8 Apr 2014 22:14:42 +0200 Subject: [PATCH] add shell script --- xtbackup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 xtbackup.sh diff --git a/xtbackup.sh b/xtbackup.sh new file mode 100755 index 0000000..331eee9 --- /dev/null +++ b/xtbackup.sh @@ -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 -- $@