mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
backup: bug when using backupcmd fixed
git-svn-id: https://svn.fhem.de/fhem/trunk@3391 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
13c7140dbb
commit
8387d39190
@ -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`;
|
||||
|
Loading…
Reference in New Issue
Block a user