if you'r new to rsync and you'r searching how to setup a server it is the right place.
First of all you dont need to. You absolutely dont need to install as a service of server. Because you rsync can deal with the comparing copying checking etc. stuff as it connects remote server from shell.
You mention the remote host, path then mention the local path. Rsync downloads all the files/dirs as you wish.
It's my first use of using rsync, so keep rsync to me.
Here first command
I'm in local server, I want to get remote dir, but there are folders that I dont want to download. Mostly unprossesed temporary files that can be generated, or downloaded.
Notice we use rpath as relative to shell login point mostly /home/ruser. thus path must be relative if you think to use /rpath then relative to root folder, which is "/".
stands for archive, means you want recursion and want to preserve almost everything.
stands for verbose, it prints every file it process.
stands for gzip compression, compresses files to minimize time transfer over internet.
rsync -avz ruser@rhost:rpath/ lpath
it's that simple. You didnt started a rsync server, you didnt checked the permissions. Permissions of rhost is enough.
I saw yeni
folder which my collage created. I dont want files from this directory. Then I cancel the command and added exclude option:
rsync -avz --exclude "yeni/*" ruser@rhost:rpath/ lpath
Then started executing again. I came across with movies folder. That should also be fetched by other methods.
rsync -avz --exclude "yeni/*" --exclude "movies/*" ruser@rhost:rpath/ lpath
Every time I restart rsync, it did what it should: dont copied all files from strach, It started where it left.
As checking my remote server, I saw rsync is running with 1% percentage usage of CPU, whereas gzip is using 92%. That means even rsync is run from localhost there should be rsync installed on remote system.