I want to get the IPs of all the destination devices where my data transfer using rsync
could not be complete (or even start) as those devices are not connected to Internet or got disconnected while data transfer ...
My actual problem scenario is :
rsync -t Desktop/sony.pdf [email protected]: ssh: connect to host a.b.c.d port 22: No route to host
and I want the list of all such IPs where the data transfer could not be complted ...
the list of all IPs like 'a.b.c.d '
Method 1: Using –progress option to see the rsync progress:Use the “–progress” in the rsync command and “-av” to get a summary at the end of file transfer, consisting of transfer rate, sent/receive bytes, speed of transfer, and total file size.
Note that rsync always verifies that each transferred file was correctly reconstructed on the receiving side by checking a whole-file checksum that is generated as the file is transferred, but that automatic after-the-transfer verification has nothing to do with this option's before- the-transfer "Does this file need ...
Rsync with --ignore-existing-files: We can also skip the already existing files on the destination. This can generally be used when we are performing backups using the –link-dest option, while continuing a backup run that got interrupted. So any files that do not exist on the destination will be copied over.
An rsync process operates by communicating with another rsync process, a sender and a receiver. At startup, an rsync client connects to a peer process. If the transfer is local (that is, between file systems mounted on the same host) the peer can be created with fork, after setting up suitable pipes for the connection.
You can say where the log file is (per the man page documentation):
--log-file=FILE override the "log file" setting
Logs infos are normaly sent via syslog daemon, when rsync run in daemon mode.
If you want to log someting when using rsync over ssh, you have to put option in command line:
rsync --rsync-path='/usr/bin/rsync --log-file=$HOME/.rsyncd.log' -t Desktop/sony.pdf [email protected]:
for saving logs in destination host or
rsync --log-file=$HOME/.rsyncd.log -t Desktop/sony.pdf [email protected]:
for saving logs in source host.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With