backup: bug when using backupcmd fixed

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3391 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-07-08 06:05:52 +00:00
parent fed8860203
commit de7e4a6c49

View File

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