LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-17-2009, 09:25 AM   #1
Alize
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Rep: Reputation: 0
Linux remote backups, alternative to rsync?


Hi all,

I have 4 dedicated servers that need backing up (these are in a datacenter, need backing up nightly, preferably!), my plan was to rsync them with a local server I have setup, however, when using SSH with rsync, the transfer rates start around 25kb/s and quickly dwindle down to around 0.5kb/s! I'm on an 8mb connection and have download speeds of around 800kb/s so it isn't my connection!

Is there an alternative to SSH rsync? Any software I could setup to remote sync them?

Cheers
 
Old 09-17-2009, 09:32 AM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
The problem does not look like it comes from your software. It looks like you have a connection problem. You may want to talk to your ISP.
 
Old 09-17-2009, 09:33 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

I used rsync also to synchronize files and folders but it didn't quite satisfy me so I searched for other options and found Unison. It does exactly what I want, is easy to set up and maintain. Have a look at it. It's worth checking out.

Kind regards,

Eric
 
Old 09-17-2009, 12:49 PM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
From what I know, unisonfs is especially used to mount a snapshot over a read-only directory.

You cannot go wrong using a simple scheduled bash script that rusn rsync, ssh, tar to do backups. That's how a lot, if not, most Linux admins do native backups.

Another alternative that I like, additional to rsync/ssh is squashfs. It is great because it allows you to create a compressed backup file that can be mounted. This is especially good, since a big compressed backup file can take a long time to decompress.

Are you backing to tape or disk?
 
Old 09-17-2009, 12:54 PM   #5
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Unison is much more than just mounting a read only snapshot. I use it continuously to synchronize bidirectionally different directories between servers. And this over an SSH tunnel with SSL keys as authentication, fully automated.

Kind regards,

Eric
 
Old 09-18-2009, 09:11 AM   #6
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Since you are talking about download speeds of 800kb/s I assume this copying is not on your local LAN. What should your specified upload speed be as seen from your server? You say you are in a data center, and that should mean your UPload to the outside world should be higher. What you get now looks like if you are behind an ADSL router.

jlinkels
 
Old 09-21-2009, 01:59 AM   #7
Alize
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jlinkels View Post
Since you are talking about download speeds of 800kb/s I assume this copying is not on your local LAN. What should your specified upload speed be as seen from your server? You say you are in a data center, and that should mean your UPload to the outside world should be higher. What you get now looks like if you are behind an ADSL router.

jlinkels
I'm not entirely sure of the upload speed from our server. I am indeed behind an ADSL router. We have 4 dedicated servers hosted in a datacenter, I am trying to take nightly backups from those servers and download them to a local server we have in the office so if one of our dedicated servers die, we can bring them backup with a local nightly backup.

That's the plan anyway, I have spoken to a friend of mine who said rsync should not be slow and I should try and tackle why that is so slow.

Thanks for your help guys!
 
Old 09-21-2009, 06:43 AM   #8
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Then I would propose that you do some upload tests from the datacenter to an external server to see if the speed limiting is caused by your connection or something else. Try for example to ftp some fairly large files (10 MB or so) to an external server and see what sustained data rate you get.

jlinkels
 
Old 09-21-2009, 07:01 AM   #9
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Quote:
Originally Posted by EricTRA View Post
Hello,

I used rsync also to synchronize files and folders but it didn't quite satisfy me so I searched for other options and found Unison. It does exactly what I want, is easy to set up and maintain. Have a look at it. It's worth checking out.

Kind regards,

Eric
If rsync is slow for him, unison will be slow as well, as I believe that is based off of rsync.
 
Old 01-02-2018, 04:52 PM   #10
toolz0
LQ Newbie
 
Registered: Feb 2013
Location: Acworth, Georgia
Distribution: CentOS
Posts: 1

Rep: Reputation: Disabled
Re: rsync

We tried rsync to mirror file systems about 10 years ago and found that it goes out into the weeds if you have many files. One of our hosts has 1.6 million files on just one file system. We just again tested rsync (assuming that it would have been fixed after 10 years), and sure enough, it still goes out into the weeds after a few tens of thousands of files. So, we went back to tar and ftp to mirror file systems.
 
Old 01-02-2018, 06:02 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
toolz0, hello and welcome to LQ.

Kind of an old post.
 
  


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] Remote rsync/rsnapshot backups as a limited privelege user Vanyel Linux - Software 1 07-30-2009 10:27 AM
rsync - Backups pkraus109 Linux - Server 2 05-21-2009 12:36 PM
Rsync backups gabsik Linux - General 3 11-24-2006 07:14 PM
Rsync backups gabsik Linux - Networking 1 03-30-2006 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:05 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