LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-09-2016, 06:51 PM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Rep: Reputation: 29
Rsync from cygwin to centos7 extremely slow


i have rsync running from cygwin on windows 2008r2 backing up to the correct directories on my centos7 box over the internet

but it is very very slow

i ran the command on 1 directory which is 5.7GB in size
and the list moves up file by file extremely slowly
i have an old copy of the data in the same directory im pointing
rsync to.

i quit after an hour to see if i run the command again if it would run any quicker...but its just as slow

on cygwin i ran rsync --version and it reports:
rsync version 3.1.1 protocol version 31

on my centos7 box i ran the same command and got:
rsync version 3.0.9 protocol version 30

could this have something to do with it?

i ran sudo upgrade rsync but it told me i have the latest version installed.

i have no idea what could be causing this,i googled it and it said if compression options are implemented it could take a long time,but i dont have any compression options and i also read that rsync runs incremental backups by default

i really dont have any idea what else i can try,any help would be greatly appreciated
 
Old 03-09-2016, 06:59 PM   #2
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
i upgraded the rsync on my centos7 box using the following commands

wget https://download.samba.org/pub/rsync...c-3.1.1.tar.gz
tar -xf rsync-3.1.1.tar.gz
cd rsync-3.1.1
./configure
make
sudo make install

sudo rm /usr/bin/rsync
sudo ln -s /usr/local/bin/rsync /usr/bin/rsync
rsync --version

rsync now says

rsync version 3.1.1 protocol version 31 (which is the same on my cygwin terminal)

...but its running the same
 
Old 03-09-2016, 07:27 PM   #3
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
i added this argument to rsync: --info=progress2
im getting between 115KB/s to 160KB/s is this normal over the internet
been reading that it could be encryption and ssh and that i should be using rsynd to rsyncd instead

any ideas?
 
Old 03-09-2016, 07:44 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
a few things

it normally is NOT a good idea to manually install system programs like rsync from source

did you at least add a "EXCLUDE = rsync" to the yum program so that it will NOT replace the version you built with the official version in the OS repos


also i take it you are not familiar with CygWin

everything has to go through the "cygwin1.dll" this is and has been a bottleneck for many years
and slows things down greatly

why not just use normal back up tools on Cent 7.2
 
Old 03-10-2016, 03:47 AM   #5
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
ok so i ran the script on one of my smaller directories,it was 2.7GB and it took hours
it completed and when i ran the command again it took seconds
made some changes and the new files copied over in seconds
think the copy i placed in the directory is a bit old...so i will recopy the data and try again
 
Old 03-10-2016, 05:16 AM   #6
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
hey John VV im using cygwin cause im pushing from server 2008r2 to centos7...so you suggest i rather pull from the centos 7 box?
how would i go about doing that?
 
Old 03-10-2016, 03:04 PM   #7
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
"a few things

it normally is NOT a good idea to manually install system programs like rsync from source

did you at least add a "EXCLUDE = rsync" to the yum program so that it will NOT replace the version you built with the official version in the OS repos "

no i didnt EXCLUDE = rsync...am i going to have problems now with my installation...maybe down the line

so how was i meant to update it?

thanks for the tips
 
Old 03-10-2016, 03:17 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
so how was i meant to update it?
on the only supported version of 7 "CentOS 7.2 "
you use yum as per all the instructions in all of the documentation

Code:
su -

/* --- type in your root password when asked --- */

yum update
installs all the current software updates
 
Old 03-10-2016, 03:23 PM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by sigint-ninja View Post
so how was i meant to update it?
You weren't.

Run a yum update, if there's an rsync update available in the CentOS repos it'll pull it in, if not then leave it alone unless you have an absolute driving NEED to install that EXACT version and NOTHING else due to some special feature or bug fix.

Do not go around compiling random pieces of built-in software from scratch and replacing the system default. That's a good way to screw up the system in short order.

As for the speed, you said you're transferring through the internet. The transfer speed is going to be the lesser of the upload speed of your home internet connection or the download speed of whatever connection the remote system has. Chances are your upload is going to be the bottleneck. Contact your ISP if you don't know it, or you can perform one of the numerous bandwidth tests available on the net to test it. You can also enable compression in your transfer with the "-z" flag in rsync, depending on the type of data you're sending (whether or not it's compressible) this could help or hurt.

I don't know anything about the ISPs in Ireland, but the dinkier ones here in the US often have an upload cap of around 1 Mbps, which would be around 120 kBps, which is what you're seeing. Unless you have a balls-to-the-wall internet connection, backing up hundreds of GB to remote systems through the internet is generally a bad idea.

Last edited by suicidaleggroll; 03-10-2016 at 03:27 PM.
 
Old 03-10-2016, 03:24 PM   #10
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
ok john,

so if no update for a program happens through yum update ...its best left like that,as that is the current supported version in the repos

is there a way i can role back to the original version?

thanks again
 
Old 03-12-2016, 12:34 PM   #11
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
but i thought rsync only uploaded new/changed files...why is it going through every file,even though i have made a copy of the data in the same directory???
 
Old 03-12-2016, 03:17 PM   #12
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
It must think the files have changed. How did you copy the data to the backup drive originally?
 
Old 03-12-2016, 03:29 PM   #13
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
Just within windows server I copied the directories to a USB hdd and copied into the directory on the centos box...still my transfer isn't too bad actually I started one of the main directorys Wednesday night and it finished this morning was 125gb...I hope my isp doesn't nail me...even though it's an unlimited connection though the FUP prop doesn't apply to upload.

Never thought about that I know there are tools...I prob should have used robocopy or something that keeps files identical

Last edited by sigint-ninja; 03-12-2016 at 03:31 PM.
 
Old 03-12-2016, 03:40 PM   #14
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
A click and drag copy using Windows will change all of your time stamps, that may be what's triggering it. I think rsync may have an option to switch to checksum comparison, which would take a lot of overhead to compute, but might help in this scenario.
 
Old 03-12-2016, 04:24 PM   #15
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
hey suicidaleggroll

you talking about

-c, --checksum
This forces the sender to checksum all files using a 128-bit MD4 checksum
before transfer. The checksum is then explicitly checked on the receiver and
any files of the same name which already exist and have the same checksum and
size on the receiver are skipped. This option can be quite slow.

but i dont understand where the slow comes in...is it slow on actual transfer of files...or the whole operation...i dont understand
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Centos7 slow boot Vanx Linux - Networking 3 08-18-2015 01:52 AM
rsync 3.0.8 with cygwin rvw Linux - General 0 08-03-2011 08:47 AM
IBM T42 "Extremely, EXTREMELY Slow" alwayslearning Linux - Laptop and Netbook 5 10-11-2009 03:34 AM
rsync option in cygwin ufmale Linux - Newbie 2 01-25-2009 12:06 PM
sdl games are slow extremely slow linksocc Linux - Software 7 01-17-2004 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration