Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does rsync keep the log file for complete and incomplete data transfers?

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 '

like image 357
user1709815 Avatar asked Oct 24 '12 20:10

user1709815


People also ask

How do I check rsync progress?

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.

Does rsync do a checksum?

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 ...

Does rsync Skip existing files?

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.

How does Linux rsync work?

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.


2 Answers

You can say where the log file is (per the man page documentation):

--log-file=FILE         override the "log file" setting
like image 118
kbulgrien Avatar answered Oct 03 '22 13:10

kbulgrien


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.

like image 44
F. Hauri Avatar answered Oct 03 '22 14:10

F. Hauri