rsync server

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 "/".
a stands for archive, means you want recursion and want to preserve almost everything.
v stands for verbose, it prints every file it process.
z 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.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
                                  d8b                     
Y8P

88888888 888 888 .d88b. 8888 .d88b. .d8888b
d88P 888 888 d88P"88b "888 d88P"88b d88P"
d88P 888 888 888 888 888 888 888 888
d88P Y88b 888 Y88b 888 888 Y88b 888 Y88b.
88888888 "Y88888 "Y88888 888 "Y88888 "Y8888P
888 888 888
Y8b d88P d88P Y8b d88P
"Y88P" 888P" "Y88P"
Enter the code depicted in ASCII art style.