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:
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user