diff options
Diffstat (limited to 'backupninja')
-rwxr-xr-x | backupninja | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/backupninja b/backupninja index e5c55ae..d52f4cd 100755 --- a/backupninja +++ b/backupninja @@ -305,7 +305,14 @@ function process_action() { let "actions_run += 1" # call the handler: - local bufferfile="/tmp/backupninja.buffer.$$" + [ if -x /bin/mktemp ] + then + local bufferfile=`mktemp /tmp/backupninja.buffer.XXXXXXXX` + else + DATE=`date` + sectmp=`echo $DATE | /usr/bin/md5sum | cut -d- -f1` + local bufferfile=/tmp/backupninja.buffer.$sectmp + fi echo "" > $bufferfile echo_debug_msg=1 ( |