Probably more so, if the log is impt and needs to be saved. Here are a few solutions I gathered -
single file, tar is not required, multiple files may be we would want to tar it also. We will tar/gzip and throw the output to stdout which will be piped to a pv (to show the progress) which is piped to nc -l (netcat listener)
(on source)
1. single large file
(on target)
single file, tar is not required, multiple files may be we would want to tar it also. We will tar/gzip and throw the output to stdout which will be piped to a pv (to show the progress) which is piped to nc -l (netcat listener)
(on source)
1. single large file
gzip -c filename | pv | nc -l 45452. multiple large file or directory
tar czf - filename | pv | nc -l 4545
(on target)
nc source-hostnmae 4545 > filename.gz or nc source-hostnmae 4545 > filename.tar.gz
No comments:
Post a Comment