LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-04-2009, 11:29 AM   #1
linuxfia
Member
 
Registered: Apr 2008
Distribution: ubuntu 7.10, centos 4 & 5
Posts: 84

Rep: Reputation: 15
rsync to mirror


Hello,
I'm trying to setup an rsync to mirror a directory on server A to server B.
I run this rsync commnad on the receiving end server B and it copies the directory and its contents fine from server A but it doesn't actually mirror.
When a file is deleted on server A, it doesn't get deleted on server B.
It just addes any new files or changes.
How would I go about having it to delete any files that does not exist on server A on server B?

Quote:
rsync -avrze ssh --delete user@A:/home/jsmith /home/
 
Old 06-04-2009, 11:33 AM   #2
linuxfia
Member
 
Registered: Apr 2008
Distribution: ubuntu 7.10, centos 4 & 5
Posts: 84

Original Poster
Rep: Reputation: 15
Never mind, it seems to be working now...

Last edited by linuxfia; 06-04-2009 at 11:37 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DISCUSSION: Using rsync to mirror data between servers david_ross LinuxAnswers Discussion 8 03-29-2012 01:37 AM
Can I use rsync to create mirror two servers with different OS Deadbeat456 Linux - Server 3 06-25-2008 07:44 AM
LXer: Mirror Your Web Site With rsync LXer Syndicated Linux News 0 05-21-2006 06:21 PM
Rsync to mirror data for backup - having difficulties tapanga Linux - Newbie 1 05-17-2004 05:45 PM
www mirror: is dnotify / rsync my best bet? GuitsBoy Linux - Software 2 01-27-2004 07:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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