TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


technote:netcat:linux_sync

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
technote:netcat:linux_sync [2021/06/15 23:53] – [Setting Up Receiving Server] Scott Cunliffetechnote:netcat:linux_sync [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 24: Line 24:
   nc XXX.XXX.XXX.XXX 4545 < ./report.txt > Sync-output.txt   nc XXX.XXX.XXX.XXX 4545 < ./report.txt > Sync-output.txt
  
 +By placing both the vmquery code with the netcat execution code in the same script, you can schedule the script to run using cron or similar to execute the data extraction and call to the Sync process on the receiving server.
 ===== Setting Up Receiving Server ===== ===== Setting Up Receiving Server =====
      
Line 42: Line 42:
         user            = root         user            = root
         server          = /etc/tapetrack/scripts/runSync.sh         server          = /etc/tapetrack/scripts/runSync.sh
-        server_args     = -S user:-passwordt@localhost+        server_args     = -S user:-password@localhost
         only_from       = YYY.YYY.YYY.YYY         only_from       = YYY.YYY.YYY.YYY
         log_on_failure  +=USERID         log_on_failure  +=USERID
Line 67: Line 67:
   exit   exit
  
 +When the Sync program is executed by the sending server with a call to the port, the data file will be passed to the Sync program via the stdin stream.
 +
 +Ensure the ttidef file is either in the same directory, or at the location stated in the script so the Sync program has access.
 +
 +Examples of ttidef files:
 +    * [[cookbook:backupexec|Backup Exec]]
 +    * [[cookbook:commvault|Commvault]]
 +    * [[cookbook:dataprotector|Data Protector]]
 +    * [[cookbook:netbackup|NetBackup]]
 +    * [[cookbook:networker|NetWorker]]
 +    * [[cookbook:tsm|Tivoli Storage Manager]]
 +    * [[cookbook:veeam|VEEAM]]
 +
 +
 +Output from the Sync process will be passed back to the sending server from the stderr stream to the stdin stream.
  
 +This can be altered to write the output to file on either computer by using the > and 2> redirection streams to text file if required.
  
 {{tag> technote netcat linux sync xinetd}} {{tag> technote netcat linux sync xinetd}}
technote/netcat/linux_sync.1623801206.txt.gz · Last modified: 2025/01/21 22:07 (external edit)