newakp.blogg.se

Copy file one server to another linux
Copy file one server to another linux





This should be gentler on SSDs and avoids dirtying kernel IO buffers, but it is still incurring IO ops to scan the beginning at both ends.). Rsync ~/my_log_file.txt with cron you can save recopying the first part of the log file (I express uncertainty since you definitely save COPYING the already transferred portion, but you still do a comparison on each side to locate the already transferred portion to skip. Alternatively, I think if you use rsync.Then at the remote end you need to setup the receiving server to filter the remote messages into the appropriate place (by sending host with %HOSTNAME% as part of file name, by facility %syslogfacility-text%, program name %programname%, etc.) The part about sorting things out at the other end is specific to rsyslog.) My preferred method as suggested by ryekayo is to just send the syslog messages to local file AND to remote host:Īuthpriv.* part of the facility I think works with pretty much all syslog daemons.







Copy file one server to another linux