backup: bug when using backupcmd fixed

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3391 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2013-07-08 06:05:52 +00:00
parent 480fc927b8
commit bbbbf9e675

View File

@@ -173,8 +173,10 @@ createArchiv($)
# prevents tar's output of "Removing leading /" and return total bytes of archive
$cmd = "tar -$tarOpts - @pathname |gzip > $backupdir/FHEM-$dateTime.tar.gz";
} else {
$ret = "$backupcmd \"@pathname\"";
$cmd = "$backupcmd \"@pathname\"";
}
Log 2, "Backup with command: $cmd";
$ret = `($cmd) 2>&1`;