Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

rsync for bi-direction mirroring?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
groovin
Guru
Guru
User avatar
Posts: 429
Joined: Sat Feb 07, 2004 8:16 pm
Location: California, USA

rsync for bi-direction mirroring?

  • Quote

Post by groovin » Tue Oct 05, 2004 11:55 pm

hi, i have 2 servers SERVER1 and SERVER2. They are networked as follows:

+---------(wan)----------------------+
| |
users------server1-----(wan)-----server2-----users

(diagram omits any routers, firewalls, etc.)

The wan link is a bit slow so users accessing a share called "shared" on server1 waste alot of time for even small files to open across the wan (vpn).

so, i thought, why not just mirror server1:/shared onto server2 using 2 rsyncs (rsync in one direction, then in the other)? sounds like a great idea, but i had a few problems in such a setup.

suppose there are files added/deleted on server2 and different files being added and deleted on server1... if server2 then starts an rsync to send its changed files over to server1, it will rsync back the files that were deleted on server1. Also, if the --delete option is used, then new files on server1 are deleted because they do not exist on server2. also, suppose a file is changed on server1, and server2 is rsynced to server1, the older file will be synced back to server1.

it looks like rsync was really meant with other hosts syncing from a master host and not any kind of bi-directional mirroring.

any rsync savy persons out there know of a hack to get this to work? i was thinking about looking at other things instead of rsync like drbd, but dont know (yet) how well that works via semi-slow links.

thanksl
Top
patrickbores
Apprentice
Apprentice
User avatar
Posts: 276
Joined: Mon May 19, 2003 5:42 am
Location: Minneapolis, MN, USA
Contact:
Contact patrickbores
Website

  • Quote

Post by patrickbores » Wed Oct 06, 2004 12:23 am

You might be interested in Unison.

http://www.gentoo.org/news/en/gwn/20040 ... letter.xml
http://www.cis.upenn.edu/~bcpierce/unison/

Patrick
P.S. - this is what part of the alphabet would look like if Q and R were eliminated.
Top
bryon
Apprentice
Apprentice
User avatar
Posts: 163
Joined: Fri Feb 14, 2003 7:08 pm
Contact:
Contact bryon
Website

very cool

  • Quote

Post by bryon » Wed Oct 06, 2004 6:08 am

I did not know that sutch as unison existed.

I think i will start testing it out and implementing it on some of my server.

You can never have too much backup.
Top
groovin
Guru
Guru
User avatar
Posts: 429
Joined: Sat Feb 07, 2004 8:16 pm
Location: California, USA

  • Quote

Post by groovin » Wed Oct 06, 2004 8:58 pm

thanks patrick! that solves more than just the problem i had posted.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic