rsync-time-backup icon indicating copy to clipboard operation
rsync-time-backup copied to clipboard

How to use rsync protocol with rsync daemon?

Open gr4nt3d opened this issue 3 years ago • 5 comments

I would like to use the rsync protocol to backup my data to a NAS. However, the following call does not work

rsync://user@server:/path/target

Moreover ssh://user@server:/path/target doesn't work either, whereas just user@server:/path/target seems to work (but one has to enter the password unreasonably often without sshkey setup).

If this has not been implemented yet, is it possible to add this?

gr4nt3d avatar Aug 12 '20 22:08 gr4nt3d

Did you read the manual?

Backup to remote drive over SSH, on port 2222: $ rsync_tmbackup.sh -p 2222 /home [email protected]:/mnt/backup_drive

psmanek avatar Aug 13 '20 07:08 psmanek

Yes I read that. I understand, that this would use the SSH-protocol not the rsync one.

gr4nt3d avatar Aug 13 '20 13:08 gr4nt3d

No. It will use rsync over SSH.

psmanek avatar Aug 13 '20 13:08 psmanek

Ok, please pardon my lack of knowledge. But from this source I understood, that it would speed up the process, as no file lists would have to be built. Telling from my runs it is quite fast, but the output still goes through all the files, which takes quite a while even if nothing is being transfered. Now, I thought this was due to the wrong calling on my side. (Edit: Also the configured user for the daemon doesn't really show up)

How, can I discern if there is any benefit in running the rsync daemon? (The output looks identical)

gr4nt3d avatar Aug 13 '20 13:08 gr4nt3d

@gr4nt3d yes, you can use rsyncd on SRC server, and use that great script with plain rsync. what you need - is just comment section with checking SRC_FOLDER and you'll be able to run it like that:

./rsync_tmbackup.sh rsync://user@server/path/what/to/backup /path/to/backup

mrPsycho avatar Apr 28 '21 20:04 mrPsycho