add fhem hostname to backup file name syntax
This commit is contained in:
		@@ -1,2 +1,2 @@
 | 
				
			|||||||
UPD 2021-11-09_13:08:21 6508 FHEM/98_backupToStorage.pm
 | 
					UPD 2021-11-09_13:08:21 6508 FHEM/98_backupToStorage.pm
 | 
				
			||||||
UPD 2021-11-09_13:21:43 24151 lib/FHEM/Services/backupToStorage.pm
 | 
					UPD 2021-11-09_13:51:01 24284 lib/FHEM/Services/backupToStorage.pm
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -424,6 +424,8 @@ sub PushToStorage {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        $subprocess->{curl}                 = qx(which curl);
 | 
					        $subprocess->{curl}                 = qx(which curl);
 | 
				
			||||||
        chomp($subprocess->{curl});
 | 
					        chomp($subprocess->{curl});
 | 
				
			||||||
 | 
					        $subprocess->{fhemhost}             = qx(hostname -f);
 | 
				
			||||||
 | 
					        chomp($subprocess->{fhemhost}
 | 
				
			||||||
        $subprocess->{type}                 = $hash->{STORAGETYPE};
 | 
					        $subprocess->{type}                 = $hash->{STORAGETYPE};
 | 
				
			||||||
        $subprocess->{host}                 = AttrVal( $name, 'bTS_Host', '' );
 | 
					        $subprocess->{host}                 = AttrVal( $name, 'bTS_Host', '' );
 | 
				
			||||||
        $subprocess->{user}                 = AttrVal( $name, 'bTS_User', '' );
 | 
					        $subprocess->{user}                 = AttrVal( $name, 'bTS_User', '' );
 | 
				
			||||||
@@ -616,7 +618,7 @@ sub ExecuteNCupload {
 | 
				
			|||||||
    $command .= $subprocess->{user};
 | 
					    $command .= $subprocess->{user};
 | 
				
			||||||
    $command .= $subprocess->{path};
 | 
					    $command .= $subprocess->{path};
 | 
				
			||||||
    $command .= '/';
 | 
					    $command .= '/';
 | 
				
			||||||
    $command .= $subprocess->{fileNameAtStorage};
 | 
					    $command .= $subprocess->{fhemhost} . '-' . $subprocess->{fileNameAtStorage};
 | 
				
			||||||
    $command .= '"';
 | 
					    $command .= '"';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return ExecuteCommand($command);
 | 
					    return ExecuteCommand($command);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user